Skip to content

Commit e3a1d17

Browse files
author
Nikita Dugar
committed
change output syntax
1 parent b4ce5a4 commit e3a1d17

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

outputs.tf

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# Module : Redis
22
# Description : Terraform module to create Elasticache Cluster and replica for Redis.
33
output "id" {
4-
value = var.cluster_enabled ? "" : concat(
5-
aws_elasticache_replication_group.default.*.id,
6-
aws_elasticache_replication_group.cluster.*.id
7-
)[0]
4+
value = var.cluster_enabled ? "" : (var.replication_enabled ? join("", aws_elasticache_replication_group.default.*.id) : join("", aws_elasticache_replication_group.cluster.*.id))
85
description = "Redis cluster id."
96
}
107

0 commit comments

Comments
 (0)