Skip to content

Commit d8ffe30

Browse files
committed
Add endpoint address
1 parent 6bf7482 commit d8ffe30

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

outputs.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@ output "port" {
1313
output "tags" {
1414
value = module.labels.tags
1515
description = "A mapping of tags to assign to the resource."
16-
}
16+
}
17+
18+
output "endpoint" {
19+
value = var.cluster_enabled ? "" : (var.replication_enabled ? join("", aws_elasticache_replication_group.default.*.primary_endpoint_address) : join("", aws_elasticache_replication_group.cluster.*.configuration_endpoint_address))
20+
description = "Primary endpoint address."
21+
}

0 commit comments

Comments
 (0)