terraform-provider-kafka-connect

command module
v2.1.9+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 2 Imported by: 0

README

terraform-plugin-kafka-connect

A Terraform plugin for managing Apache Kafka Connect. Forked from Mongey/terraform-provider-kafka-connect with changes made to support MasterySystems requirements for kafka-connect in data replication.

Example

Configure the provider directly, or set the ENV variable KAFKA_CONNECT_URL

provider "kafka-connect" {
  url = "http://localhost:8083"
  basic_auth_username = "user" # Optional
  basic_auth_password = "password" # Optional
}

resource "kafka-connect_connector" "sqlite-sink" {
  name = "sqlite-sink"

  config = {
    "name"            = "sqlite-sink"
    "connector.class" = "io.confluent.connect.jdbc.JdbcSinkConnector"
    "tasks.max"       = 1
    "topics"          = "orders"
    "connection.url"  = "jdbc:sqlite:test.db"
    "auto.create"     = "true"
    "connection.user" = "admin"
  }

  config_sensitive = {
    "connection.password" = "this-should-never-appear-unmasked"
  }
}

Provider Properties

Property Type Example Alternative environment variable name
url URL "http://localhost:8083" KAFKA_CONNECT_URL
basic_auth_username String "user" KAFKA_CONNECT_BASIC_AUTH_USERNAME
basic_auth_password String "password" KAFKA_CONNECT_BASIC_AUTH_PASSWORD

Resource Properties

Property Type Description
name String Connector name
config HCL Block Connector configuration
config_sensitive HCL Block Sensitive connector configuration. Will be masked in output.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL