We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a0fa90 commit 4490764Copy full SHA for 4490764
main.tf
@@ -40,7 +40,7 @@ resource "aws_acm_certificate" "self" {
40
}
41
42
resource "aws_route53_record" "validation" {
43
- count = var.validation_set_records ? length(local.all_domains) : 0
+ count = var.validation_set_records ? length(distinct(local.all_domains)) : 0
44
45
zone_id = lookup(local.zone_name_to_id_map, lookup(local.domain_to_zone_map, local.cert_validation_domains[count.index]["domain_name"]))
46
name = local.cert_validation_domains[count.index]["resource_record_name"]
0 commit comments