» yandex_mdb_redis_cluster

Get information about a Yandex Managed Redis cluster. For more information, see the official documentation.

» Example Usage

data "yandex_mdb_redis_cluster" "foo" {
  name = "test"
}

output "network_id" {
  value = "${data.yandex_mdb_redis_cluster.foo.network_id}"
}

» Argument Reference

The following arguments are supported:

  • cluster_id - (Optional) The ID of the Redis cluster.
  • name - (Optional) The name of the Redis cluster.
  • folder_id - (Optional) Folder that the resource belongs to. If value is omitted, the default provider folder is used.

» Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • network_id - ID of the network, to which the Redis cluster belongs.
  • created_at - Creation timestamp of the key.
  • description - Description of the Redis cluster.
  • labels - A set of key/value label pairs to assign to the Redis cluster.
  • environment - Deployment environment of the Redis cluster.
  • health - Aggregated health of the cluster.
  • status - Status of the cluster.
  • config - Configuration of the Redis cluster. The structure is documented below.
  • resources - Resources allocated to hosts of the Redis cluster. The structure is documented below.
  • host - A host of the Redis cluster. The structure is documented below.
  • sharded - Redis Cluster mode enabled/disabled.

The config block supports:

  • timeout - Close the connection after a client is idle for N seconds.
  • maxmemory_policy - Redis key eviction policy for a dataset that reaches maximum memory.
  • version - Version of Redis (either 5.0 or 6.0).

The resources block supports:

The host block supports:

  • zone - The availability zone where the Redis host will be created.
  • subnet_id - The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs.
  • shard_name - The name of the shard to which the host belongs.
  • fqdn - The fully qualified domain name of the host.