Get info about a Google Cloud Redis instance.
data "google_redis_instance" "my_instance" {
name = "my-redis-instance"
}
output "instance_memory_size_gb" {
value = data.google_redis_instance.my_instance.memory_size_gb
}
output "instance_connect_mode" {
value = data.google_redis_instance.my_instance.connect_mode
}
output "instance_authorized_network" {
value = data.google_redis_instance.my_instance.authorized_network
}
The following arguments are supported:
name
- (Required) The name of a Redis instance.project
- (Optional) The project in which the resource belongs. If it
is not provided, the provider project is used.
region
- (Optional) The region in which the resource belongs. If it
is not provided, the provider region is used.
See google_redis_instance resource for details of the available attributes.