Skip to content

Commit 2638ebc

Browse files
committed
Use primary_endpoint_addess if dns is not used for host output
Fixes #37
1 parent 277a6ed commit 2638ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

output.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ output "port" {
1414
}
1515

1616
output "host" {
17-
value = "${module.dns.hostname}"
17+
value = "${element(coalescelist(compact(list(module.dns.hostname)), aws_elasticache_replication_group.default.*.primary_endpoint_address), 0)}"
1818
description = "Redis host"
1919
}

0 commit comments

Comments
 (0)