File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ resource "aws_acm_certificate" "this" {
88
99resource "aws_route53_record" "this" {
1010 count = " ${ length (var. zone_ids )} "
11+ allow_overwrite = " ${ var . overwrite } "
1112 name = " ${ lookup (aws_acm_certificate. this . domain_validation_options [count . index ], " resource_record_name" )} "
1213 type = " ${ lookup (aws_acm_certificate. this . domain_validation_options [count . index ], " resource_record_type" )} "
1314 zone_id = " ${ element (var. zone_ids , count. index )} "
Original file line number Diff line number Diff line change @@ -21,3 +21,8 @@ variable "validate" {
2121 description = " Validate ACM certificates"
2222 default = true
2323}
24+
25+ variable "overwrite" {
26+ description = " Allow creation of this record in Terraform to overwrite an existing record"
27+ default = true
28+ }
You can’t perform that action at this time.
0 commit comments