Closed marcinkubica closed 7 months ago
👋 @marcinkubica,
Confluent Cloud supports both fully-managed connectors:
The referenced folder contains a few selected connectors that we created examples for, but confluent_connector
resource supports all fully-managed connectors on Confluent Cloud. In other words, you can use TF Provider for Confluent and its confluent_connector
resource (use connector.class
attribute to specify its class) to create both
See more details at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/resources/confluent_connector and let us know whether it helps!
resource "confluent_connector" "source" {
environment {
id = confluent_environment.staging.id
}
kafka_cluster {
id = confluent_kafka_cluster.basic.id
}
// Block for custom *sensitive* configuration properties that are labelled with "Type: password" under "Configuration Properties" section in the docs:
// https://docs.confluent.io/cloud/current/connectors/cc-gcs-source.html#configuration-properties
config_sensitive = {
...
}
// Block for custom *nonsensitive* configuration properties that are *not* labelled with "Type: password" under "Configuration Properties" section in the docs:
// https://docs.confluent.io/cloud/current/connectors/cc-gcs-source.html#configuration-properties
config_nonsensitive = {
...
"connector.class" = "GcsSource"
@linouk23 thanks!
Hello
Not sure if I'm reading it wrong but there seem to be no GCS connector resource? https://github.com/confluentinc/terraform-provider-confluent/tree/master/examples/configurations/connectors
Or perhaps there's another way to achieve it?
Thanks! Marcin