From 05ef727f2c938f5e9799cd8576a4ffc73019c514 Mon Sep 17 00:00:00 2001 From: lohgannash Date: Fri, 6 Nov 2020 12:20:07 +1100 Subject: [PATCH] Add outputs for writer endpoint + read addresses if cluster disabled --- redis.cfndsl.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/redis.cfndsl.rb b/redis.cfndsl.rb index f2cd377..2442a04 100644 --- a/redis.cfndsl.rb +++ b/redis.cfndsl.rb @@ -128,4 +128,14 @@ } end + Output(:RedisHostEndpoint) { + Value(FnGetAtt(:ReplicationGroupRedis, record_endpoint)) + Export FnSub("${EnvironmentName}-#{external_parameters[:component_name]}-RedisHostEndpoint") + } + + Output(:RedisReadAddresses) { + Value(FnGetAtt(:ReplicationGroupRedis, 'ReadEndPoint.Addresses')) + Export FnSub("${EnvironmentName}-#{external_parameters[:component_name]}-RedisReadAddresses") + } unless cluster_enabled + end \ No newline at end of file