A Terraform plugin for managing Apache Kafka Connect.
Download and extract the latest
release to
your terraform plugin directory (typically ~/.terraform.d/plugins/
)
Configure the provider directly, or set the Env variable KAFKA_CONNECT_URL
provider "kafka-connect" {
url = "http://localhost:8083"
}
resource "kafka-connect_connector" "sqlite-sink" {
name = "test-sink"
config = {
"name" = "test-sink"
"connector.class" = "io.confluent.connect.jdbc.JdbcSinkConnector"
"tasks.max" = "1"
"topics" = "orders"
"connection.url" = "jdbc:sqlite:test.db"
"auto.create" = "true"
}
}