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

Stop private and public dns namespace resources being replaced when the description is altered #32342

Conversation

pierskarsenbarg
Copy link
Contributor

Description

Currently, if you update the description of either a private DNS namespace (aws_service_discovery_private_dns_namespaceediscovery) or a public DNS namespace (aws_service_discovery_public_dns_namespaceediscovery) it triggers a replacement. This doesn't happen either in the console or with the AWS CLI, so it probably shouldn't happen here.

Relations

Closes #32341

References

@github-actions
Copy link

github-actions bot commented Jul 3, 2023

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. service/servicediscovery Issues and PRs that pertain to the servicediscovery service. provider Pertains to the provider itself, rather than any interaction with AWS. size/XS Managed by automation to categorize the size of a PR. needs-triage Waiting for first response or review from a maintainer. labels Jul 3, 2023
@github-actions
Copy link

github-actions bot commented Jul 3, 2023

Thank you for your contribution! 🚀

Please note that the CHANGELOG.md file contents are handled by the maintainers during merge. This is to prevent pull request merge conflicts, especially for contributions which may not be merged immediately. Please see the Contributing Guide for additional pull request review items.

Remove any changes to the CHANGELOG.md file and commit them in this pull request to prevent delays with reviewing and potentially merging this pull request.

@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Jul 3, 2023
…Namespace'.

Acceptance test output:

% make testacc TESTARGS='-run=TestAccServiceDiscoveryPrivateDNSNamespace_description' PKG=servicediscovery ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/servicediscovery/... -v -count 1 -parallel 2  -run=TestAccServiceDiscoveryPrivateDNSNamespace_description -timeout 180m
=== RUN   TestAccServiceDiscoveryPrivateDNSNamespace_description
=== PAUSE TestAccServiceDiscoveryPrivateDNSNamespace_description
=== CONT  TestAccServiceDiscoveryPrivateDNSNamespace_description
--- PASS: TestAccServiceDiscoveryPrivateDNSNamespace_description (130.74s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/servicediscovery	136.172s
…mespace'.

Acceptance test output:

% make testacc TESTARGS='-run=TestAccServiceDiscoveryPublicDNSNamespace_description' PKG=servicediscovery ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/servicediscovery/... -v -count 1 -parallel 2  -run=TestAccServiceDiscoveryPublicDNSNamespace_description -timeout 180m
=== RUN   TestAccServiceDiscoveryPublicDNSNamespace_description
=== PAUSE TestAccServiceDiscoveryPublicDNSNamespace_description
=== CONT  TestAccServiceDiscoveryPublicDNSNamespace_description
--- PASS: TestAccServiceDiscoveryPublicDNSNamespace_description (125.75s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/servicediscovery	131.459s
@github-actions github-actions bot added size/M Managed by automation to categorize the size of a PR. size/XS Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. and removed size/XS Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. size/M Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. labels Jul 3, 2023
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 🚀.

% make testacc TESTARGS='-run=TestAccServiceDiscoveryPublicDNSNamespace_\|TestAccServiceDiscoveryPrivateDNSNamespace_' PKG=servicediscovery ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/servicediscovery/... -v -count 1 -parallel 2  -run=TestAccServiceDiscoveryPublicDNSNamespace_\|TestAccServiceDiscoveryPrivateDNSNamespace_ -timeout 180m
=== RUN   TestAccServiceDiscoveryPrivateDNSNamespace_basic
=== PAUSE TestAccServiceDiscoveryPrivateDNSNamespace_basic
=== RUN   TestAccServiceDiscoveryPrivateDNSNamespace_disappears
=== PAUSE TestAccServiceDiscoveryPrivateDNSNamespace_disappears
=== RUN   TestAccServiceDiscoveryPrivateDNSNamespace_description
=== PAUSE TestAccServiceDiscoveryPrivateDNSNamespace_description
=== RUN   TestAccServiceDiscoveryPrivateDNSNamespace_Error_overlap
=== PAUSE TestAccServiceDiscoveryPrivateDNSNamespace_Error_overlap
=== RUN   TestAccServiceDiscoveryPrivateDNSNamespace_tags
=== PAUSE TestAccServiceDiscoveryPrivateDNSNamespace_tags
=== RUN   TestAccServiceDiscoveryPublicDNSNamespace_basic
=== PAUSE TestAccServiceDiscoveryPublicDNSNamespace_basic
=== RUN   TestAccServiceDiscoveryPublicDNSNamespace_disappears
=== PAUSE TestAccServiceDiscoveryPublicDNSNamespace_disappears
=== RUN   TestAccServiceDiscoveryPublicDNSNamespace_description
=== PAUSE TestAccServiceDiscoveryPublicDNSNamespace_description
=== RUN   TestAccServiceDiscoveryPublicDNSNamespace_tags
=== PAUSE TestAccServiceDiscoveryPublicDNSNamespace_tags
=== CONT  TestAccServiceDiscoveryPrivateDNSNamespace_basic
=== CONT  TestAccServiceDiscoveryPublicDNSNamespace_basic
--- PASS: TestAccServiceDiscoveryPublicDNSNamespace_basic (114.63s)
=== CONT  TestAccServiceDiscoveryPrivateDNSNamespace_tags
--- PASS: TestAccServiceDiscoveryPrivateDNSNamespace_basic (118.92s)
=== CONT  TestAccServiceDiscoveryPrivateDNSNamespace_Error_overlap
--- PASS: TestAccServiceDiscoveryPrivateDNSNamespace_tags (151.81s)
=== CONT  TestAccServiceDiscoveryPrivateDNSNamespace_description
--- PASS: TestAccServiceDiscoveryPrivateDNSNamespace_Error_overlap (176.03s)
=== CONT  TestAccServiceDiscoveryPrivateDNSNamespace_disappears
--- PASS: TestAccServiceDiscoveryPrivateDNSNamespace_description (131.18s)
=== CONT  TestAccServiceDiscoveryPublicDNSNamespace_tags
--- PASS: TestAccServiceDiscoveryPrivateDNSNamespace_disappears (111.82s)
=== CONT  TestAccServiceDiscoveryPublicDNSNamespace_description
--- PASS: TestAccServiceDiscoveryPublicDNSNamespace_description (129.71s)
=== CONT  TestAccServiceDiscoveryPublicDNSNamespace_disappears
--- PASS: TestAccServiceDiscoveryPublicDNSNamespace_tags (151.63s)
--- PASS: TestAccServiceDiscoveryPublicDNSNamespace_disappears (104.38s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/servicediscovery	646.391s

@ewbankkit
Copy link
Contributor

@pierskarsenbarg Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 44164f1 into hashicorp:main Jul 3, 2023
39 checks passed
@github-actions github-actions bot added this to the v5.7.0 milestone Jul 3, 2023
@pierskarsenbarg pierskarsenbarg deleted the b-aws_private_dns_namesspace-description-replacement branch July 4, 2023 06:00
@github-actions
Copy link

github-actions bot commented Jul 7, 2023

This functionality has been released in v5.7.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
Copy link

github-actions bot commented Aug 7, 2023

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 Aug 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/servicediscovery Issues and PRs that pertain to the servicediscovery service. size/XS Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Updating the description of a Private or Public DNS Namespace causes resource to be replaced
2 participants