Commit 1841eaae authored by Eugene Dementiev's avatar Eugene Dementiev Committed by Andriy Knysh

Use primary_endpoint_addess if dns is not used for host output (#38)

Fixes #37
parent 277a6edc
......@@ -14,6 +14,6 @@ output "port" {
}
output "host" {
value = "${module.dns.hostname}"
value = "${coalesce(module.dns.hostname, join("", aws_elasticache_replication_group.default.*.primary_endpoint_address))}"
description = "Redis host"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment