Skip to content

Commit 5974381

Browse files
author
diego
committed
feat(Allow Overwrite): Use allow_overwrite in true by default
1 parent faead73 commit 5974381

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ resource "aws_acm_certificate" "this" {
88

99
resource "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)}"

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)