Closed gte250p closed 4 years ago
Ok, I figured out what was going on. To help others, my Domain name ended in the period, so my.domain.com.
Running trim on it fixed this issue:
trim(domain_name, ".")
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.
Looks like the
tomap(v)
if which resides in the validation_domains local definition has some issue. In my case, I get the certificate created correctly, and it is in "Pending validation" state. The output forterraform state show aws_acm_certificate.this[0]
looks something like this:Note that for my project I can't plan, destroy, apply - nothing because it says that error:
The solution I've found that works is to remove the
if contains(local.distinct_domain_names, replace(v.domain_name, "*.", ""))
from main.tf.