Skip to content

Commit 6a8f761

Browse files
authored
Add outputs for writer endpoint + read addresses if cluster disabled (#6)
1 parent ad87867 commit 6a8f761

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

redis.cfndsl.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,14 @@
128128
}
129129
end
130130

131+
Output(:RedisHostEndpoint) {
132+
Value(FnGetAtt(:ReplicationGroupRedis, record_endpoint))
133+
Export FnSub("${EnvironmentName}-#{external_parameters[:component_name]}-RedisHostEndpoint")
134+
}
135+
136+
Output(:RedisReadAddresses) {
137+
Value(FnGetAtt(:ReplicationGroupRedis, 'ReadEndPoint.Addresses'))
138+
Export FnSub("${EnvironmentName}-#{external_parameters[:component_name]}-RedisReadAddresses")
139+
} unless cluster_enabled
140+
131141
end

0 commit comments

Comments
 (0)