Closed sjtindell closed 2 years ago
When I go request a public ACM cert via the web gui, even if I set the requested name without a dot, it appends a dot to the expected record.
"mydomain.com" becomes "mydomain.com."
At https://github.com/terraform-aws-modules/terraform-aws-acm/blob/master/main.tf
I believe I can set a dot on the resource with a change to
resource "aws_route53_record" "validation" {
name = "${element(local.validation_domains, count.index)["resource_record_name"]}."
}
or a "fmt" call, but this
resource "aws_acm_certificate_validation" "this" {
validation_record_fqdns = aws_route53_record.validation.*.fqdn
}
then fails.
Was there a change on Amazon's end somewhere or am I using the module wrong?
This was a silly mistake on my end...I created a public hosted zone but forgot to add its NS records to my upstream domain. So ACM simply couldn't resolve the record, it was stuck in Pending, and the mismatch between what the Validation showed with a dot and the actual CNAME not having the dot was a red herring.
For anyone else who runs into it, changing the dots around was wrong and caused lots of
FATAL problem: DomainLabelEmpty
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
I am trying to create an ACM cert in a public hosted zone with a single SAN wildcard name and DNS validation.
I call the module as follows
and it creates a cert, validations, and validation records from what I can tell.
The only problem is that it hangs Pending validation because the validation name is
with a trailing dot, and the module seems to create a record
without it.
When I execute
I get
Versions
Terraform v1.0.9 on darwin_amd64
Reproduction
Setup the code above and
terraform apply
Expected behavior
The validation should succeed, the records should match.