-
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
r/aws_networkmanager_connect_peer: return all BGP configurations #38798
r/aws_networkmanager_connect_peer: return all BGP configurations #38798
Conversation
Community NoteVoting for Prioritization
For Submitters
|
When you create a GRE connect peer in AWS Network Manager, AWS sets up two BGP endpoints. However, the code for the `aws_networkmanager_connect_peer` resource only returns the first entry in the list. This commit updates the resource to loop over all BGP configurations returned by the API.
ab3cde4
to
f152380
Compare
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=TestAccNetworkManagerConnectPeer_' PKG=networkmanager ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.6 test ./internal/service/networkmanager/... -v -count 1 -parallel 3 -run=TestAccNetworkManagerConnectPeer_ -timeout 360m
=== RUN TestAccNetworkManagerConnectPeer_basic
=== PAUSE TestAccNetworkManagerConnectPeer_basic
=== RUN TestAccNetworkManagerConnectPeer_noDependsOn
=== PAUSE TestAccNetworkManagerConnectPeer_noDependsOn
=== RUN TestAccNetworkManagerConnectPeer_subnetARN
=== PAUSE TestAccNetworkManagerConnectPeer_subnetARN
=== RUN TestAccNetworkManagerConnectPeer_tags
=== PAUSE TestAccNetworkManagerConnectPeer_tags
=== CONT TestAccNetworkManagerConnectPeer_basic
=== CONT TestAccNetworkManagerConnectPeer_subnetARN
=== CONT TestAccNetworkManagerConnectPeer_tags
--- PASS: TestAccNetworkManagerConnectPeer_basic (1717.63s)
=== CONT TestAccNetworkManagerConnectPeer_noDependsOn
--- PASS: TestAccNetworkManagerConnectPeer_tags (1761.75s)
--- PASS: TestAccNetworkManagerConnectPeer_subnetARN (1799.36s)
--- PASS: TestAccNetworkManagerConnectPeer_noDependsOn (1515.68s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/networkmanager 3238.413s
@jtdoepke Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.63.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
When you create a connect peer in AWS Network Manager, AWS sets up two BGP endpoints. However, the code for the
aws_networkmanager_connect_peer
resource only returns the first entry in the list. This commit updates the resource to loop over all BGP configurations returned by the API.Relations
Closes #29680
References
Output from Acceptance Testing