Git Product home page Git Product logo

terraform-provider-cloudkarafka's Introduction

Terraform provider for CloudKarafka

Setup your CloudKarafka cluster with Terraform

Install

git clone https://github.com/e-conomic/terraform-provider-cloudkarafka
cd terraform-provider-cloudkarafka
make init

Now the provider is installed in the terraform plugins folder and ready to be used.

Generally provider plugins are expected to be fetched from registry.terraform.io, We can create custom provider plugins and inform terraform to load them from local filesystem rather than from registry. More about this at https://www.terraform.io/docs/cli/config/config-file.html#provider-installation

In brief, the custom provider plugins are expected to be in following path/formats on various OS.

Windows:
%APPDATA%/terraform.d/plugins and %APPDATA%/HashiCorp/Terraform/plugins

Mac OS X: 
$HOME/.terraform.d/plugins/, ~/Library/Application Support/io.terraform/plugins, and /Library/Application Support/io.terraform/plugins

Linux and other Unix-like systems:
$HOME/.terraform.d/plugins/

Under these directrories the further provider path is expected as follows along with strict binary naming convention:

HOSTNAME/NAMESPACE/TYPE/VERSION/TARGET/terraform-provider-TYPE_VERSION

So for an example system of linux with amd64 architecture and cloud karafka version 0.9.0, the expected path is :

~/.terraform.d/plugins/github.com/e-conomic/cloudkarafka/0.9.0/linux_amd64/terraform-provider-cloudkarafka_v0.9.0

Cloud Karafka API

There are two api's for cloud karafka: Customer API - https://docs.cloudkarafka.com/ Console API - https://docs.cloudkarafka.com/cloudkarafka_api.html

The cloudkarafka provider is abstraction over Customer API and cloudkarafka_instance resource is abstraction over https://docs.cloudkarafka.com/#create-an-instance api. The params for the resource are similar to the create api.

Requirements

To access Cloud karafka api, you need api token which can be generated at https://customer.cloudkarafka.com/apikeys

Example

provider "cloudkarafka" {}

resource "cloudkarafka_instance" "kafka_bat" {
  name   = "terraform-provider-test"
  plan   = "bat-3"
  region = "amazon-web-services::us-east-1"
  vpc_subnet = "10.201.0.0/24"
}

output "kafka_brokers" {
  value = "${cloudkarafka_instance.kafka_bat.brokers}"
}

terraform-provider-cloudkarafka's People

Contributors

tbroden84 avatar dependabot-preview[bot] avatar mwarkentin avatar snichme avatar koalalorenzo avatar fayaz-abdul avatar nils-getdreams avatar emmanuelstroem avatar deiga avatar

Watchers

James Cloos avatar  avatar

Forkers

isabella232

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.