confluent_kafka_client_quota Resource

General Availability

confluent_kafka_client_quota provides a Kafka Client Quota resource that enables creating, editing, and deleting Kafka Client Quotas on Confluent Cloud.

Example Usage

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
  }
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to the preceding arguments, the following attributes are exported:

Import

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