Перейти к основному содержимому
selectel_dbaas_kafka_acl_v1
Последнее изменение:

selectel_dbaas_kafka_acl_v1

Creates and manages an access control list (ACL) in a Kafka datastore using public API v1. For more information about managing users in Kafka, see the official Selectel documentation.

Example usage

resource "selectel_dbaas_kafka_acl_v1" "acl_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
datastore_id = selectel_dbaas_kafka_datastore_v1.datastore_1.id
pattern = "topic"
pattern_type = "prefixed"
allow_read = true
allow_write = true
}

Argument Reference

  • pattern - (Optional) Name or prefix of a topic to which you provide access. Changing this creates a new ACL. Must be skipped when pattern_type is all.

  • pattern_type - (Required) ACL pattern type. Changing this creates a new ACL. Available ACL patterns are prefixed, literal, and all. When pattern_type is all, skip pattern.

  • allow_read - (Required) Allows to connect as a consumer.

  • allow_write - (Required) Allows to connect as a producer.

  • project_id - (Required) Unique identifier of the associated Cloud Platform project. Changing this creates a new user. Retrieved from the selectel_vpc_project_v2 resource. Learn more about Cloud Platform projects.

  • region - (Required) Pool where the database is located, for example, ru-3. Changing this creates a new ACL. Learn more about available pools in the Availability matrix.

  • datastore_id - (Required) Unique identifier of the associated datastore. Changing this creates a new ACL. Retrieved from the selectel_dbaas_kafka_datastore_v1.

  • user_id - (Required) Unique identifier of the associated user. Changing this creates a new ACL. Retrieved from the selectel_dbaas_user_v1 resource.

Attributes Reference

  • status - ACL status.