-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retry ACM certificate domain validation #9598
Conversation
…ons array is completely empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jdenly 👋 Thank you very much for this fix! It was correctly fixing the issue at hand for new ACM certificates, however one concern that we have noticed in real world usage with ACM is that DomainValidationOptions
can sometimes disappear after awhile (months?) after validation. To combat this, I'm merging this in with a slight adjustment to the conditional, to verify that indeed the certificate is in the PENDING_VALIDATION
state for returning this error:
if len(certificate.DomainValidationOptions) == 0 && aws.StringValue(certificate.Status) == acm.DomainStatusPendingValidation {
Output from acceptance testing:
--- PASS: TestAccAWSAcmCertificate_imported_IpAddress (9.37s)
--- PASS: TestAccAWSAcmCertificate_emailValidation (13.83s)
--- PASS: TestAccAWSAcmCertificate_imported_DomainName (14.90s)
--- PASS: TestAccAWSAcmCertificate_root_TrailingPeriod (14.93s)
--- PASS: TestAccAWSAcmCertificate_root (15.02s)
--- PASS: TestAccAWSAcmCertificate_wildcardAndRootSan (15.33s)
--- PASS: TestAccAWSAcmCertificate_dnsValidation (15.36s)
--- PASS: TestAccAWSAcmCertificate_san_single (15.55s)
--- PASS: TestAccAWSAcmCertificate_wildcard (17.23s)
--- PASS: TestAccAWSAcmCertificate_rootAndWildcardSan (17.71s)
--- PASS: TestAccAWSAcmCertificate_san_TrailingPeriod (18.28s)
--- PASS: TestAccAWSAcmCertificate_san_multiple (20.65s)
--- PASS: TestAccAWSAcmCertificate_tags (30.03s)
This also fixes up the aws_acm_certificate_validation
testing as well.
This has been released in version 2.23.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
Thank you |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
When the DomainValidationOptions array is completely empty, retry the validation options retrieval.
Community Note
Closes #9596
Release note for CHANGELOG:
Output from acceptance testing: