From b896bd8dd3b2ba8fa6c657b300f077079fbb152e Mon Sep 17 00:00:00 2001 From: Zack Zhang Date: Sat, 13 Jan 2024 09:48:01 -0800 Subject: [PATCH] add reader_endpoint_address output to this module. copied from https://github.com/cloudposse/terraform-aws-elasticache-redis/blob/main/outputs.tf --- outputs.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/outputs.tf b/outputs.tf index 9f3842b6..2d1f3d50 100644 --- a/outputs.tf +++ b/outputs.tf @@ -22,3 +22,8 @@ output "host" { value = module.dns.hostname description = "Redis hostname" } + +output "reader_endpoint_address" { + value = join("", compact(aws_elasticache_replication_group.default[*].reader_endpoint_address)) + description = "The address of the endpoint for the reader node in the replication group, if the cluster mode is disabled." +}