Skip to content

Commit d88cfde

Browse files
committed
feat: update value route-53
1 parent 3051bcc commit d88cfde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ resource "aws_route53_record" "elasticache" {
222222
type = var.route53_type
223223
ttl = var.route53_ttl
224224
zone_id = var.route53_zone_id
225-
records = var.cluster_replication_enabled == true ? aws_elasticache_replication_group.cluster.*.configuration_endpoint_address : aws_elasticache_cluster.default.*.configuration_endpoint
225+
records = var.automatic_failover_enabled == true ? aws_elasticache_replication_group.cluster.*.configuration_endpoint_address : aws_elasticache_cluster.default.*.configuration_endpoint
226226
}
227227

228228
##----------------------------------------------------------------------------------
@@ -247,6 +247,6 @@ resource "aws_ssm_parameter" "secret-endpoint" {
247247
name = format("/%s/%s/endpoint", var.environment, var.name)
248248
description = var.ssm_parameter_description
249249
type = var.ssm_parameter_type
250-
value = var.cluster_replication_enabled == true ? join("", aws_elasticache_replication_group.cluster.*.configuration_endpoint_address) : join("", aws_elasticache_cluster.default.*.configuration_endpoint)
250+
value = var.automatic_failover_enabled == true ? join("", aws_elasticache_replication_group.cluster.*.configuration_endpoint_address) : join("", aws_elasticache_cluster.default.*.configuration_endpoint)
251251
key_id = var.kms_key_id == "" ? join("", aws_kms_key.default.*.arn) : var.kms_key_id
252252
}

0 commit comments

Comments
 (0)