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/acm_certificate_validation: safely handle nil resourcerecord or resourcerecord.name data #14590

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

anGie44
Copy link
Contributor

@anGie44 anGie44 commented Aug 11, 2020

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 #14542

Release note for CHANGELOG:

resource/acm_validation: safely handle nil ResourceRecord or ResourceRecord.Name data

Output from acceptance testing (no new tests added for cases where domain_validation_option.resource_record is nil as unable to reproduce but did note API docs do show a Sample Response where this key and sub-keys are omitted: https://docs.aws.amazon.com/acm/latest/APIReference/API_DescribeCertificate.html)

--- PASS: TestAccAWSAcmCertificateValidation_basic (135.89s)
--- PASS: TestAccAWSAcmCertificateValidation_validationRecordFqdnsWildcard (135.90s)
--- PASS: TestAccAWSAcmCertificateValidation_validationRecordFqdnsSan (139.22s)
--- PASS: TestAccAWSAcmCertificateValidation_validationRecordFqdns (141.98s)
--- PASS: TestAccAWSAcmCertificateValidation_validationRecordFqdnsRootAndWildcard (99.28s)
--- PASS: TestAccAWSAcmCertificateValidation_validationRecordFqdnsRoot (155.62s)
--- PASS: TestAccAWSAcmCertificateValidation_validationRecordFqdnsEmail (13.56s)
--- PASS: TestAccAWSAcmCertificateValidation_timeout (18.65s)
--- PASS: TestAccAWSAcmCertificateValidation_validationRecordFqdnsWildcardAndRoot (63.39s)

@anGie44 anGie44 requested a review from a team August 11, 2020 22:12
@ghost ghost added size/S Managed by automation to categorize the size of a PR. service/acm Issues and PRs that pertain to the acm service. labels Aug 11, 2020
@anGie44 anGie44 force-pushed the b-nil-acm-cert-domain-validation-option-record branch from 16f9ca2 to 427b884 Compare August 11, 2020 22:13
@anGie44 anGie44 changed the title resource/acm_validation: safely handle nil resourcerecord or resourcerecord.name data resource/acm_certificate_validation: safely handle nil resourcerecord or resourcerecord.name data Aug 11, 2020
@anGie44 anGie44 force-pushed the b-nil-acm-cert-domain-validation-option-record branch from 427b884 to 8b57cbd Compare August 11, 2020 22:43
@bflad bflad added bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. labels Aug 12, 2020
@bflad bflad added this to the v3.2.0 milestone Aug 12, 2020
@bflad bflad self-assigned this Aug 12, 2020
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Looks great! 🚀

Output from acceptance testing:

--- PASS: TestAccAWSAcmCertificateValidation_validationRecordFqdnsEmail (14.88s)
--- PASS: TestAccAWSAcmCertificateValidation_timeout (18.98s)
--- PASS: TestAccAWSAcmCertificateValidation_validationRecordFqdnsRootAndWildcard (69.39s)
--- PASS: TestAccAWSAcmCertificateValidation_validationRecordFqdnsRoot (69.79s)
--- PASS: TestAccAWSAcmCertificateValidation_validationRecordFqdnsWildcard (69.83s)
--- PASS: TestAccAWSAcmCertificateValidation_basic (100.14s)
--- PASS: TestAccAWSAcmCertificateValidation_validationRecordFqdnsWildcardAndRoot (105.18s)
--- PASS: TestAccAWSAcmCertificateValidation_validationRecordFqdns (181.62s)
--- PASS: TestAccAWSAcmCertificateValidation_validationRecordFqdnsSan (242.02s)

@anGie44 anGie44 merged commit abf35d4 into master Aug 12, 2020
@anGie44 anGie44 deleted the b-nil-acm-cert-domain-validation-option-record branch August 12, 2020 21:36
anGie44 added a commit that referenced this pull request Aug 12, 2020
@ghost
Copy link

ghost commented Aug 14, 2020

This has been released in version 3.2.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 Sep 12, 2020

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 and limited conversation to collaborators Sep 12, 2020
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. crash Results from or addresses a Terraform crash or kernel panic. service/acm Issues and PRs that pertain to the acm service. size/S Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terraform crashes running in Docker
2 participants