Skip to content

Commit d1c3652

Browse files
author
Michel Zanini
committed
fix: creation of route53 validation records when the main domain name starts with star
1 parent a8842dc commit d1c3652

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
@@ -1,6 +1,6 @@
11
locals {
22
// Get distinct list of domains and SANs
3-
distinct_domain_names = distinct(concat([var.domain_name], [for s in var.subject_alternative_names : replace(s, "*.", "")]))
3+
distinct_domain_names = distinct(concat([replace(var.domain_name, "*.", "")], [for s in var.subject_alternative_names : replace(s, "*.", "")]))
44

55
// Copy domain_validation_options for the distinct domain names
66
validation_domains = var.create_certificate ? [for k, v in aws_acm_certificate.this[0].domain_validation_options : tomap(v) if contains(local.distinct_domain_names, replace(v.domain_name, "*.", ""))] : []

0 commit comments

Comments
 (0)