yandex_mdb_redis_user (Data Source)
Статья создана
Обновлена 11 сентября 2025 г.
Manages a Redis user within the Yandex Cloud. For more information, see the official documentation.
Example usage
//
// Get information about existing MDB Redis User.
//
data "yandex_mdb_redis_user" "my_user" {
cluster_id = "some_cluster_id"
name = "test"
}
output "permissions" {
value = data.yandex_mdb_redis_user.my_user.permissions
}
Schema
Required
cluster_id(String) The ID of the cluster to which user belongs to.name(String) The name of the user.
Optional
timeouts(Attributes) (see below for nested schema)
Read-Only
acl_options(String) Raw ACL string which has been inserted into the Redisenabled(Boolean) Is redis user enabled.id(String) The resource identifier.passwords(Set of String, Sensitive) Set of user passwordspermissions(Attributes) Set of permissions granted to the user. (see below for nested schema)
Nested Schema for timeouts
Optional:
create(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).delete(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.update(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Nested Schema for permissions
Read-Only:
categories(String) Command categories user has permissions to.commands(String) Commands user can execute.patterns(String) Keys patterns user has permission to.pub_sub_channels(String) Channel patterns user has permissions to.sanitize_payload(String) SanitizePayload parameter.