-
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
fix: fix aws_vpclattice_service_network_vpc_association
forced replacement
#32658
fix: fix aws_vpclattice_service_network_vpc_association
forced replacement
#32658
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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.
Welcome @nmoutschen 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
…workVPCAssociationByID' in acceptance tests.
# Conflicts: # internal/service/vpclattice/service_network_vpc_association_test.go
…nAWSErrMessageContainsV2'.
…ce.RetryWhenAWSErrMessageContainsV2'.
…g resource when passing an ARN as 'service_identifier' or 'service_network_identifier'.
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.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccVPCLatticeServiceNetworkVPCAssociation_' PKG=vpclattice ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/vpclattice/... -v -count 1 -parallel 2 -run=TestAccVPCLatticeServiceNetworkVPCAssociation_ -timeout 180m
=== RUN TestAccVPCLatticeServiceNetworkVPCAssociation_basic
=== PAUSE TestAccVPCLatticeServiceNetworkVPCAssociation_basic
=== RUN TestAccVPCLatticeServiceNetworkVPCAssociation_arn
=== PAUSE TestAccVPCLatticeServiceNetworkVPCAssociation_arn
=== RUN TestAccVPCLatticeServiceNetworkVPCAssociation_disappears
=== PAUSE TestAccVPCLatticeServiceNetworkVPCAssociation_disappears
=== RUN TestAccVPCLatticeServiceNetworkVPCAssociation_full
=== PAUSE TestAccVPCLatticeServiceNetworkVPCAssociation_full
=== RUN TestAccVPCLatticeServiceNetworkVPCAssociation_tags
=== PAUSE TestAccVPCLatticeServiceNetworkVPCAssociation_tags
=== CONT TestAccVPCLatticeServiceNetworkVPCAssociation_basic
=== CONT TestAccVPCLatticeServiceNetworkVPCAssociation_full
--- PASS: TestAccVPCLatticeServiceNetworkVPCAssociation_full (79.22s)
=== CONT TestAccVPCLatticeServiceNetworkVPCAssociation_disappears
--- PASS: TestAccVPCLatticeServiceNetworkVPCAssociation_basic (101.09s)
=== CONT TestAccVPCLatticeServiceNetworkVPCAssociation_tags
--- PASS: TestAccVPCLatticeServiceNetworkVPCAssociation_disappears (74.56s)
=== CONT TestAccVPCLatticeServiceNetworkVPCAssociation_arn
--- PASS: TestAccVPCLatticeServiceNetworkVPCAssociation_tags (124.50s)
--- PASS: TestAccVPCLatticeServiceNetworkVPCAssociation_arn (79.70s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/vpclattice 238.616s
% make testacc TESTARGS='-run=TestAccVPCLatticeServiceNetworkServiceAssociation_' PKG=vpclattice ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/vpclattice/... -v -count 1 -parallel 2 -run=TestAccVPCLatticeServiceNetworkServiceAssociation_ -timeout 180m
=== RUN TestAccVPCLatticeServiceNetworkServiceAssociation_basic
=== PAUSE TestAccVPCLatticeServiceNetworkServiceAssociation_basic
=== RUN TestAccVPCLatticeServiceNetworkServiceAssociation_arn
=== PAUSE TestAccVPCLatticeServiceNetworkServiceAssociation_arn
=== RUN TestAccVPCLatticeServiceNetworkServiceAssociation_disappears
=== PAUSE TestAccVPCLatticeServiceNetworkServiceAssociation_disappears
=== RUN TestAccVPCLatticeServiceNetworkServiceAssociation_tags
=== PAUSE TestAccVPCLatticeServiceNetworkServiceAssociation_tags
=== CONT TestAccVPCLatticeServiceNetworkServiceAssociation_basic
=== CONT TestAccVPCLatticeServiceNetworkServiceAssociation_disappears
--- PASS: TestAccVPCLatticeServiceNetworkServiceAssociation_disappears (32.80s)
=== CONT TestAccVPCLatticeServiceNetworkServiceAssociation_tags
--- PASS: TestAccVPCLatticeServiceNetworkServiceAssociation_basic (35.26s)
=== CONT TestAccVPCLatticeServiceNetworkServiceAssociation_arn
--- PASS: TestAccVPCLatticeServiceNetworkServiceAssociation_arn (33.26s)
--- PASS: TestAccVPCLatticeServiceNetworkServiceAssociation_tags (68.45s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/vpclattice 105.914s
@nmoutschen Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.10.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! |
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. |
Description
aws_vpclattice_service_network_vpc_association
supports specifying a service network ID or ARN, but the current implementation would force a resource replacement on updates if we pass an ARN.This change uses a custom diff function for
service_network_identifier
for theaws_vpclattice_service_network_vpc_association
that matches no matter if the user provides an ARN or resource ID.Relations
Closes #31896
References
Output from Acceptance Testing