confluent_ksql_cluster
describes a ksqlDB cluster data source.
provider "confluent" {
cloud_api_key = var.confluent_cloud_api_key # optionally use CONFLUENT_CLOUD_API_KEY env var
cloud_api_secret = var.confluent_cloud_api_secret # optionally use CONFLUENT_CLOUD_API_SECRET env var
}
data "confluent_ksql_cluster" "example_using_id" {
id = "lksqlc-abc123"
environment {
id = "env-xyz456"
}
}
output "example_using_id" {
value = data.confluent_ksql_cluster.example_using_id
}
data "confluent_ksql_cluster" "example_using_name" {
display_name = "ksqldb_cluster"
environment {
id = "env-xyz456"
}
}
output "example_using_name" {
value = data.confluent_ksql_cluster.example_using_name
}
The following arguments are supported:
id
- (Optional String) The ID of the ksqlDB cluster, for example, lksqlc-abc123
.display_name
- (Optional String) The name of the ksqlDB cluster.environment
(Required Configuration Block) supports the following:
id
- (Required String) The ID of the Environment that the ksqlDB cluster belongs to, for example, env-xyz456
.In addition to the preceding arguments, the following attributes are exported:
api_version
- (Required String) An API Version of the schema version of the ksqlDB cluster, for example, ksqldbcm/v2
.kind
- (Required String) A kind of the ksqlDB cluster, for example, Cluster
.csu
- (Required Number) The number of CSUs (Confluent Streaming Units) in the ksqlDB cluster.use_detailed_processing_log
(Optional Boolean) Controls whether the row data should be included in the processing log topic.topic_prefix
- (Required String) Topic name prefix used by this ksqlDB cluster. Used to assign ACLs for this ksqlDB cluster to use, for example, pksqlc-00000
.rest_endpoint
- (Required String) The API endpoint of the ksqlDB cluster, for example, https://pksqlc-00000.us-central1.gcp.glb.confluent.cloud
.kafka_cluster
(Optional Configuration Block) supports the following:
id
- (Required String) The ID of the Kafka cluster that the ksqlDB cluster belongs to, for example, lkc-abc123
.credential_identity
(Optional Configuration Block) supports the following:
id
- (Required String) The ID of the service or user account that the ksqlDB cluster belongs to, for example, sa-abc123
.storage
- (Required Integer) The amount of storage (in GB) provisioned to this cluster.resource_name
- (Required String) The Confluent Resource Name of the ksqlDB cluster.