-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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_globalaccelerator_endpoint_group: add attachment_arn
to endpoint_configuration
#39507
r/aws_globalaccelerator_endpoint_group: add attachment_arn
to endpoint_configuration
#39507
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 @tcarreira 👋
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! 😃
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=TestAccGlobalAcceleratorEndpointGroup_' PKG=globalaccelerator ACCTEST_PARALLELISM=2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.1 test ./internal/service/globalaccelerator/... -v -count 1 -parallel 2 -run=TestAccGlobalAcceleratorEndpointGroup_ -timeout 360m
=== RUN TestAccGlobalAcceleratorEndpointGroup_basic
=== PAUSE TestAccGlobalAcceleratorEndpointGroup_basic
=== RUN TestAccGlobalAcceleratorEndpointGroup_disappears
=== PAUSE TestAccGlobalAcceleratorEndpointGroup_disappears
=== RUN TestAccGlobalAcceleratorEndpointGroup_ALBEndpoint_clientIP
=== PAUSE TestAccGlobalAcceleratorEndpointGroup_ALBEndpoint_clientIP
=== RUN TestAccGlobalAcceleratorEndpointGroup_instanceEndpoint
=== PAUSE TestAccGlobalAcceleratorEndpointGroup_instanceEndpoint
=== RUN TestAccGlobalAcceleratorEndpointGroup_multiRegion
=== PAUSE TestAccGlobalAcceleratorEndpointGroup_multiRegion
=== RUN TestAccGlobalAcceleratorEndpointGroup_portOverrides
=== PAUSE TestAccGlobalAcceleratorEndpointGroup_portOverrides
=== RUN TestAccGlobalAcceleratorEndpointGroup_tcpHealthCheckProtocol
=== PAUSE TestAccGlobalAcceleratorEndpointGroup_tcpHealthCheckProtocol
=== RUN TestAccGlobalAcceleratorEndpointGroup_update
=== PAUSE TestAccGlobalAcceleratorEndpointGroup_update
=== RUN TestAccGlobalAcceleratorEndpointGroup_crossAccountAttachment
=== PAUSE TestAccGlobalAcceleratorEndpointGroup_crossAccountAttachment
=== CONT TestAccGlobalAcceleratorEndpointGroup_basic
=== CONT TestAccGlobalAcceleratorEndpointGroup_portOverrides
--- PASS: TestAccGlobalAcceleratorEndpointGroup_basic (165.66s)
=== CONT TestAccGlobalAcceleratorEndpointGroup_update
--- PASS: TestAccGlobalAcceleratorEndpointGroup_portOverrides (208.23s)
=== CONT TestAccGlobalAcceleratorEndpointGroup_crossAccountAttachment
endpoint_group_test.go:444: skipping test because at least one environment variable of [AWS_ALTERNATE_PROFILE AWS_ALTERNATE_ACCESS_KEY_ID] must be set. Usage: credentials for running acceptance testing in alternate AWS account.
--- SKIP: TestAccGlobalAcceleratorEndpointGroup_crossAccountAttachment (0.13s)
=== CONT TestAccGlobalAcceleratorEndpointGroup_tcpHealthCheckProtocol
--- PASS: TestAccGlobalAcceleratorEndpointGroup_update (228.84s)
=== CONT TestAccGlobalAcceleratorEndpointGroup_instanceEndpoint
--- PASS: TestAccGlobalAcceleratorEndpointGroup_tcpHealthCheckProtocol (205.29s)
=== CONT TestAccGlobalAcceleratorEndpointGroup_multiRegion
--- PASS: TestAccGlobalAcceleratorEndpointGroup_multiRegion (171.94s)
=== CONT TestAccGlobalAcceleratorEndpointGroup_ALBEndpoint_clientIP
--- PASS: TestAccGlobalAcceleratorEndpointGroup_instanceEndpoint (715.26s)
=== CONT TestAccGlobalAcceleratorEndpointGroup_disappears
--- PASS: TestAccGlobalAcceleratorEndpointGroup_disappears (173.05s)
--- PASS: TestAccGlobalAcceleratorEndpointGroup_ALBEndpoint_clientIP (809.58s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/globalaccelerator 1400.632s
% make testacc TESTARGS='-run=TestAccGlobalAcceleratorEndpointGroup_crossAccountAttachment' PKG=globalaccelerator
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.1 test ./internal/service/globalaccelerator/... -v -count 1 -parallel 20 -run=TestAccGlobalAcceleratorEndpointGroup_crossAccountAttachment -timeout 360m
=== RUN TestAccGlobalAcceleratorEndpointGroup_crossAccountAttachment
=== PAUSE TestAccGlobalAcceleratorEndpointGroup_crossAccountAttachment
=== CONT TestAccGlobalAcceleratorEndpointGroup_crossAccountAttachment
--- PASS: TestAccGlobalAcceleratorEndpointGroup_crossAccountAttachment (346.59s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/globalaccelerator 351.766s
…[Expected: 1; Actual: 2]'.
@tcarreira Thanks for the contribution 🎉 👏. |
Thanks for the quick review/approve |
This functionality has been released in v5.70.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. |
(continuing #37269)
Description
In #35991 we added support for making cross account attachments (docs). There was one part missing, using them in the endpoint group for the Global Accelerator (AGA).
This add support for setting this field
AttachmentArn
: https://docs.aws.amazon.com/global-accelerator/latest/api/API_EndpointConfiguration.htmlRelations
Closes #37631
Closes #37269
References
Completing the work started on #37269
Following feature from #35991
Output from Acceptance Testing
new test:
note: I had to run this test without the PreCheck
acctest.PreCheckOrganizationsAccount(ctx, t)
bc I don't have multiple AWS accounts on different Orgs. I should not affect the result.All tests for this resource:
(I did not run
TestAccGlobalAcceleratorEndpointGroup_instanceEndpoint
)