Skip to content

Commit

Permalink
feat(Allow Overwrite): Use allow_overwrite in true by default
Browse files Browse the repository at this point in the history
  • Loading branch information
diego committed Jun 20, 2019
1 parent faead73 commit 5974381
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resource "aws_acm_certificate" "this" {

resource "aws_route53_record" "this" {
count = "${length(var.zone_ids)}"
allow_overwrite = "${var.overwrite}"
name = "${lookup(aws_acm_certificate.this.domain_validation_options[count.index], "resource_record_name")}"
type = "${lookup(aws_acm_certificate.this.domain_validation_options[count.index], "resource_record_type")}"
zone_id = "${element(var.zone_ids, count.index)}"
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ variable "validate" {
description = "Validate ACM certificates"
default = true
}

variable "overwrite" {
description = "Allow creation of this record in Terraform to overwrite an existing record"
default = true
}

0 comments on commit 5974381

Please sign in to comment.