confluent_kafka_client_quota
provides a Kafka Client Quota resource that enables creating, editing, and deleting Kafka Client Quotas on Confluent Cloud.
resource "confluent_kafka_client_quota" "example" {
display_name = "test-quota"
description = "Test Quota"
throughput {
ingress_byte_rate = "100"
egress_byte_rate = "200"
}
principals = [confluent_service_account.app_manager.id, confluent_service_account.app_manager_2.id]
kafka_cluster {
id = confluent_kafka_cluster.dedicated.id
}
environment {
id = confluent_environment.development.id
}
lifecycle {
prevent_destroy = true
}
}
The following arguments are supported:
display_name
- (Required String) The name of the Kafka Client Quota.description
- (Optional String) The description of the Kafka Client Quota.throughput
(Required Configuration Block) supports the following:
ingress_byte_rate
- (Required String) The ingress throughput limit in bytes per second.egress_byte_rate
- (Required String) The egress throughput limit in bytes per second.principals
- (Required Set of Strings) The list of principals (i.e., service accounts or identity pools) to apply the Kafka Client Quota to. Use the special name, "kafka_cluster
(Required Configuration Block) supports the following:
id
- (Required String) The ID of the Kafka Cluster where the Kafka Client Quota is applied, for example, lkc-abc123
.environment
(Required Configuration Block) supports the following:
id
- (Required String) The ID of the Environment that the corresponding Kafka Cluster belongs to, for example, env-abc123
.In addition to the preceding arguments, the following attributes are exported:
id
- (Required String) The ID of the Kafka Client Quota, for example, cq-abc123
.You can import a Kafka Client Quota by using Kafka Client Quota ID. The following example shows how to import a Kafka Client Quota ID:
$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
$ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
$ terraform import confluent_kafka_client_quota.example cq-abc123