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" {
8
8
9
9
resource "aws_route53_record" "this" {
10
10
count = " ${ length (var. zone_ids )} "
11
+ allow_overwrite = " ${ var . overwrite } "
11
12
name = " ${ lookup (aws_acm_certificate. this . domain_validation_options [count . index ], " resource_record_name" )} "
12
13
type = " ${ lookup (aws_acm_certificate. this . domain_validation_options [count . index ], " resource_record_type" )} "
13
14
zone_id = " ${ element (var. zone_ids , count. index )} "
Original file line number Diff line number Diff line change @@ -21,3 +21,8 @@ variable "validate" {
21
21
description = " Validate ACM certificates"
22
22
default = true
23
23
}
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