yandex_mdb_kafka_user (Data Source)
Статья создана
Обновлена 7 августа 2025 г.
Get information about a user of the Yandex Managed Kafka cluster. For more information, see the official documentation.
Example usage
//
// Get information about existing MDB Kafka User.
//
data "yandex_mdb_kafka_user" "my_user" {
cluster_id = "some_cluster_id"
name = "test"
}
output "username" {
value = data.yandex_mdb_kafka_user.my_user.name
}
Schema
Required
cluster_id(String) The ID of the Kafka cluster.name(String) The resource name.
Read-Only
id(String) The ID of this resource.password(String, Sensitive) The password of the user.permission(Set of Object) Set of permissions granted to the user. (see below for nested schema)
Nested Schema for permission
Read-Only:
-
allow_hosts(Set of String) Set of hosts, to which this permission grants access to. Only ip-addresses allowed as value of single host. -
role(String) The role type to grant to the topic. -
topic_name(String) The name of the topic that the permission grants access to.