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" {
222
222
type = var. route53_type
223
223
ttl = var. route53_ttl
224
224
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
226
226
}
227
227
228
228
# #----------------------------------------------------------------------------------
@@ -247,6 +247,6 @@ resource "aws_ssm_parameter" "secret-endpoint" {
247
247
name = format (" /%s/%s/endpoint" , var. environment , var. name )
248
248
description = var. ssm_parameter_description
249
249
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 )
251
251
key_id = var. kms_key_id == " " ? join (" " , aws_kms_key. default . * . arn ) : var. kms_key_id
252
252
}
You can’t perform that action at this time.
0 commit comments