r/aws_globalaccelerator_endpoint_group: add attachment_arn
to endpoint_configuration
#39507
+277
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(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
)