Skip to content

Commit 6a0fa90

Browse files
authored
Fix domain validation dependency issue
1 parent b99eae8 commit 6a0fa90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
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.cert_validation_domains) : 0
43+
count = var.validation_set_records ? length(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)