Skip to content
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

resource/aws_acm_certificate: Trigger resource recreation on VALIDATION_TIMED_OUT status #17869

Merged
merged 3 commits into from
Mar 4, 2021

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Mar 1, 2021

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #17799

This change is not pragmatic for acceptance testing as it requires 72 hours to trigger the behavior, but acceptance testing is used for finding any regressions.

Output from acceptance testing:

--- PASS: TestAccAWSAcmCertificate_disableCTLogging (28.63s)
--- PASS: TestAccAWSAcmCertificate_dnsValidation (33.31s)
--- PASS: TestAccAWSAcmCertificate_emailValidation (26.54s)
--- PASS: TestAccAWSAcmCertificate_imported_DomainName (46.51s)
--- PASS: TestAccAWSAcmCertificate_imported_IpAddress (19.45s)
--- PASS: TestAccAWSAcmCertificate_privateCert (22.21s)
--- PASS: TestAccAWSAcmCertificate_PrivateKey_Tags (34.60s)
--- PASS: TestAccAWSAcmCertificate_root (33.01s)
--- PASS: TestAccAWSAcmCertificate_root_TrailingPeriod (4.08s)
--- PASS: TestAccAWSAcmCertificate_rootAndWildcardSan (26.85s)
--- PASS: TestAccAWSAcmCertificate_san_multiple (35.05s)
--- PASS: TestAccAWSAcmCertificate_san_single (28.67s)
--- PASS: TestAccAWSAcmCertificate_san_TrailingPeriod (38.97s)
--- PASS: TestAccAWSAcmCertificate_SubjectAlternativeNames_EmptyString (4.00s)
--- PASS: TestAccAWSAcmCertificate_tags (60.14s)
--- PASS: TestAccAWSAcmCertificate_wildcard (25.46s)
--- PASS: TestAccAWSAcmCertificate_wildcardAndRootSan (29.57s)

…ON_TIMED_OUT status

Reference: #17799

This change is not pragmatic for acceptance testing as it requires 72 hours to trigger the behavior, but acceptance testing is used for finding any regresions.

Output from acceptance testing:

```
--- PASS: TestAccAWSAcmCertificate_disableCTLogging (28.63s)
--- PASS: TestAccAWSAcmCertificate_dnsValidation (33.31s)
--- PASS: TestAccAWSAcmCertificate_emailValidation (26.54s)
--- PASS: TestAccAWSAcmCertificate_imported_DomainName (46.51s)
--- PASS: TestAccAWSAcmCertificate_imported_IpAddress (19.45s)
--- PASS: TestAccAWSAcmCertificate_privateCert (22.21s)
--- PASS: TestAccAWSAcmCertificate_PrivateKey_Tags (34.60s)
--- PASS: TestAccAWSAcmCertificate_root (33.01s)
--- PASS: TestAccAWSAcmCertificate_root_TrailingPeriod (4.08s)
--- PASS: TestAccAWSAcmCertificate_rootAndWildcardSan (26.85s)
--- PASS: TestAccAWSAcmCertificate_san_multiple (35.05s)
--- PASS: TestAccAWSAcmCertificate_san_single (28.67s)
--- PASS: TestAccAWSAcmCertificate_san_TrailingPeriod (38.97s)
--- PASS: TestAccAWSAcmCertificate_SubjectAlternativeNames_EmptyString (4.00s)
--- PASS: TestAccAWSAcmCertificate_tags (60.14s)
--- PASS: TestAccAWSAcmCertificate_wildcard (25.46s)
--- PASS: TestAccAWSAcmCertificate_wildcardAndRootSan (29.57s)
```
@bflad bflad added the bug Addresses a defect in current functionality. label Mar 1, 2021
@bflad bflad requested a review from a team as a code owner March 1, 2021 16:00
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/acm Issues and PRs that pertain to the acm service. labels Mar 1, 2021
@YakDriver YakDriver self-assigned this Mar 4, 2021
Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! 🎉

us-west-2:

--- PASS: TestAccAWSAcmCertificate_SubjectAlternativeNames_EmptyString (3.69s)
--- PASS: TestAccAWSAcmCertificate_root_TrailingPeriod (3.73s)
--- PASS: TestAccAWSAcmCertificate_imported_IpAddress (20.67s)
--- PASS: TestAccAWSAcmCertificate_dnsValidation (26.76s)
--- PASS: TestAccAWSAcmCertificate_wildcard (26.89s)
--- PASS: TestAccAWSAcmCertificate_privateCert (27.33s)
--- PASS: TestAccAWSAcmCertificate_wildcardAndRootSan (29.02s)
--- PASS: TestAccAWSAcmCertificate_san_multiple (30.72s)
--- PASS: TestAccAWSAcmCertificate_PrivateKey_Tags (31.21s)
--- PASS: TestAccAWSAcmCertificate_emailValidation (31.04s)
--- PASS: TestAccAWSAcmCertificate_root (31.22s)
--- PASS: TestAccAWSAcmCertificate_san_single (31.33s)
--- PASS: TestAccAWSAcmCertificate_san_TrailingPeriod (32.72s)
--- PASS: TestAccAWSAcmCertificate_disableCTLogging (32.77s)
--- PASS: TestAccAWSAcmCertificate_rootAndWildcardSan (34.25s)
--- PASS: TestAccAWSAcmCertificate_imported_DomainName (45.20s)
--- PASS: TestAccAWSAcmCertificate_tags (53.66s)

GovCloud:

--- PASS: TestAccAWSAcmCertificate_root_TrailingPeriod (4.23s)
--- PASS: TestAccAWSAcmCertificate_SubjectAlternativeNames_EmptyString (4.35s)
--- PASS: TestAccAWSAcmCertificate_imported_IpAddress (24.50s)
--- PASS: TestAccAWSAcmCertificate_disableCTLogging (25.34s)
--- PASS: TestAccAWSAcmCertificate_emailValidation (26.00s)
--- PASS: TestAccAWSAcmCertificate_wildcard (26.24s)
--- PASS: TestAccAWSAcmCertificate_root (26.76s)
--- PASS: TestAccAWSAcmCertificate_wildcardAndRootSan (27.01s)
--- PASS: TestAccAWSAcmCertificate_dnsValidation (28.24s)
--- PASS: TestAccAWSAcmCertificate_san_single (28.26s)
--- PASS: TestAccAWSAcmCertificate_san_TrailingPeriod (28.50s)
--- PASS: TestAccAWSAcmCertificate_san_multiple (28.66s)
--- PASS: TestAccAWSAcmCertificate_privateCert (30.49s)
--- PASS: TestAccAWSAcmCertificate_PrivateKey_Tags (37.47s)
--- PASS: TestAccAWSAcmCertificate_rootAndWildcardSan (41.22s)
--- PASS: TestAccAWSAcmCertificate_imported_DomainName (51.12s)
--- PASS: TestAccAWSAcmCertificate_tags (62.84s)

@bflad bflad merged commit fed3b30 into main Mar 4, 2021
@bflad bflad deleted the b-aws_acm_certificate-validation-timed-out branch March 4, 2021 21:56
@github-actions github-actions bot added this to the v3.31.0 milestone Mar 4, 2021
github-actions bot pushed a commit that referenced this pull request Mar 4, 2021
@ghost
Copy link

ghost commented Mar 5, 2021

This has been released in version 3.31.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!

@ghost
Copy link

ghost commented Apr 4, 2021

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!

@ghost ghost locked as resolved and limited conversation to collaborators Apr 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/acm Issues and PRs that pertain to the acm service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot plan when aws_acm_certificate validation window has expired
2 participants