File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments