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/certificate_settings: Multiple bug fixes #40589

Merged
merged 12 commits into from
Dec 17, 2024

Conversation

gdavison
Copy link
Contributor

Description

Fixes multiple bugs in certificate_settings:

  • Prevent permanent diff when certificate_settings not set.
  • Prevent ValidationException when setting certificate_settings.type to AMPLIFY_MANAGED.
  • Prevent "unexpected state" error when setting certificate_settings.type to CUSTOM.
  • No longer ignores changes to certificate_settings when updating.
  • Prevents panic in some circumstances when certificate_settings is not set during update.

Relations

Closes #38387
Closes #39890

Output from Acceptance Testing

% make testacc PKG=amplify TESTS='TestAccAmplify_serial/DomainAssociation'

--- PASS: TestAccAmplify_serial (3851.69s)
    --- PASS: TestAccAmplify_serial/DomainAssociation (3851.69s)
        --- PASS: TestAccAmplify_serial/DomainAssociation/certificateSettings_Custom (1327.02s)
        --- PASS: TestAccAmplify_serial/DomainAssociation/disappears (296.65s)
        --- PASS: TestAccAmplify_serial/DomainAssociation/update (812.72s)
        --- PASS: TestAccAmplify_serial/DomainAssociation/basic (297.96s)
        --- PASS: TestAccAmplify_serial/DomainAssociation/certificateSettings_Managed (1117.31s)

@gdavison gdavison requested a review from a team as a code owner December 16, 2024 21:29
Copy link

Community Note

Voting for Prioritization

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

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/amplify Issues and PRs that pertain to the amplify service. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. labels Dec 16, 2024
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM 🚀.

% AMPLIFY_DOMAIN_NAME=terraform-provider-aws-acctest-acm.com make testacc TESTARGS='-run=TestAccAmplify_serial/^DomainAssociation$$' PKG=amplify
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/amplify/... -v -count 1 -parallel 20  -run=TestAccAmplify_serial/^DomainAssociation$ -timeout 360m
2024/12/17 08:17:43 Initializing Terraform AWS Provider...
=== RUN   TestAccAmplify_serial
=== PAUSE TestAccAmplify_serial
=== CONT  TestAccAmplify_serial
=== RUN   TestAccAmplify_serial/DomainAssociation
=== RUN   TestAccAmplify_serial/DomainAssociation/disappears
=== RUN   TestAccAmplify_serial/DomainAssociation/update
=== RUN   TestAccAmplify_serial/DomainAssociation/basic
=== RUN   TestAccAmplify_serial/DomainAssociation/certificateSettings_Managed
=== RUN   TestAccAmplify_serial/DomainAssociation/certificateSettings_Custom
--- PASS: TestAccAmplify_serial (3446.23s)
    --- PASS: TestAccAmplify_serial/DomainAssociation (3446.23s)
        --- PASS: TestAccAmplify_serial/DomainAssociation/disappears (310.86s)
        --- PASS: TestAccAmplify_serial/DomainAssociation/update (740.27s)
        --- PASS: TestAccAmplify_serial/DomainAssociation/basic (301.51s)
        --- PASS: TestAccAmplify_serial/DomainAssociation/certificateSettings_Managed (1185.50s)
        --- PASS: TestAccAmplify_serial/DomainAssociation/certificateSettings_Custom (908.09s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/amplify	3451.937s

@gdavison gdavison merged commit 527ee83 into main Dec 17, 2024
43 checks passed
@gdavison gdavison deleted the b-amplify-domain-association branch December 17, 2024 19:28
@github-actions github-actions bot added this to the v5.82.0 milestone Dec 17, 2024
terraform-aws-provider bot pushed a commit that referenced this pull request Dec 17, 2024
Copy link

This functionality has been released in v5.82.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. Thank you!

@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Dec 19, 2024
Copy link

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. service/amplify Issues and PRs that pertain to the amplify service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
2 participants