diff --git a/modules/redis-cluster/README.md b/modules/redis-cluster/README.md index b3b53664..93a34c40 100644 --- a/modules/redis-cluster/README.md +++ b/modules/redis-cluster/README.md @@ -59,7 +59,8 @@ Check the [example/](https://github.com/terraform-google-modules/terraform-googl | Name | Description | |------|-------------| -| discovery\_endpoints | Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported | +| discovery\_endpoints | (Deprecated) Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported | +| endpoints | Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported | | id | The redis cluster instance ID | | psc\_connections | PSC connections for discovery of the cluster topology and accessing the cluster | | psc\_service\_attachments | The PSC service attachments of the cluster | diff --git a/modules/redis-cluster/metadata.yaml b/modules/redis-cluster/metadata.yaml index 2fbec6ea..01630c98 100644 --- a/modules/redis-cluster/metadata.yaml +++ b/modules/redis-cluster/metadata.yaml @@ -157,6 +157,8 @@ spec: defaultValue: [] outputs: - name: discovery_endpoints + description: (Deprecated) Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported + - name: endpoints description: Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported type: - list diff --git a/modules/redis-cluster/outputs.tf b/modules/redis-cluster/outputs.tf index 6506010c..39068db4 100644 --- a/modules/redis-cluster/outputs.tf +++ b/modules/redis-cluster/outputs.tf @@ -20,10 +20,15 @@ output "id" { } output "discovery_endpoints" { - description = "Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported" + description = "(Deprecated) Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported" value = google_redis_cluster.redis_cluster.discovery_endpoints } +output "endpoints" { + description = "Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported" + value = google_redis_cluster.redis_cluster.endpoints +} + output "psc_connections" { description = "PSC connections for discovery of the cluster topology and accessing the cluster" value = google_redis_cluster.redis_cluster.psc_connections