We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b20400d commit f2f5dc4Copy full SHA for f2f5dc4
‎ssm.tf
@@ -2,9 +2,8 @@ resource "aws_ssm_parameter" "redis_endpoint" {
2
name = "/elasticache/redis/${var.env}-${var.name}/ENDPOINT"
3
description = "Elasticache Redis Endpoint"
4
type = "String"
5
- value = aws_elasticache_replication_group.redis.primary_endpoint_address
+ value = aws_elasticache_replication_group.redis.cluster_enabled ? aws_elasticache_replication_group.redis.configuration_endpoint_address : aws_elasticache_replication_group.redis.primary_endpoint_address
6
}
7
-
8
resource "aws_ssm_parameter" "redis_port" {
9
name = "/elasticache/redis/${var.env}-${var.name}/PORT"
10
description = "Elasticache Redis Port"
0 commit comments