Skip to content

Commit 4490764

Browse files
committed
Handle duplicate domains
1 parent 6a0fa90 commit 4490764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ resource "aws_acm_certificate" "self" {
4040
}
4141

4242
resource "aws_route53_record" "validation" {
43-
count = var.validation_set_records ? length(local.all_domains) : 0
43+
count = var.validation_set_records ? length(distinct(local.all_domains)) : 0
4444

4545
zone_id = lookup(local.zone_name_to_id_map, lookup(local.domain_to_zone_map, local.cert_validation_domains[count.index]["domain_name"]))
4646
name = local.cert_validation_domains[count.index]["resource_record_name"]

0 commit comments

Comments
 (0)