We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4ce5a4 commit e3a1d17Copy full SHA for e3a1d17
outputs.tf
@@ -1,10 +1,7 @@
1
# Module : Redis
2
# Description : Terraform module to create Elasticache Cluster and replica for Redis.
3
output "id" {
4
- value = var.cluster_enabled ? "" : concat(
5
- aws_elasticache_replication_group.default.*.id,
6
- aws_elasticache_replication_group.cluster.*.id
7
- )[0]
+ value = var.cluster_enabled ? "" : (var.replication_enabled ? join("", aws_elasticache_replication_group.default.*.id) : join("", aws_elasticache_replication_group.cluster.*.id))
8
description = "Redis cluster id."
9
}
10
0 commit comments