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

Add support for AWS GlobalAccelerator BYOIP. #27181

Merged
merged 10 commits into from
Oct 12, 2022
Merged

Add support for AWS GlobalAccelerator BYOIP. #27181

merged 10 commits into from
Oct 12, 2022

Conversation

coolfrood
Copy link

@coolfrood coolfrood commented Oct 10, 2022

Description

This PR adds support for BYOIP IP addresses for creating AWS GlobalAccelerator accelerators

References

API reference

Relations

Closes #14002

Output from Acceptance Testing

(Changed IP address because of security reasons)

$ GLOBALACCELERATOR_BYOIP_IPV4_ADDRESS=127.0.0.1 make testacc TESTS=TestAccGlobalAcceleratorAccelerator_byoip PKG=globalaccelerator
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/globalaccelerator/... -v -count 1 -parallel 20 -run='TestAccGlobalAcceleratorAccelerator_byoip'  -timeout 180m
=== RUN   TestAccGlobalAcceleratorAccelerator_byoip
=== PAUSE TestAccGlobalAcceleratorAccelerator_byoip
=== CONT  TestAccGlobalAcceleratorAccelerator_byoip
--- PASS: TestAccGlobalAcceleratorAccelerator_byoip (59.49s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/globalaccelerator	59.571s

$ make testacc TESTS=TestAccGlobalAcceleratorAccelerator_byoip PKG=globalaccelerator
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/globalaccelerator/... -v -count 1 -parallel 20 -run='TestAccGlobalAcceleratorAccelerator_byoip'  -timeout 180m
=== RUN   TestAccGlobalAcceleratorAccelerator_byoip
=== PAUSE TestAccGlobalAcceleratorAccelerator_byoip
=== CONT  TestAccGlobalAcceleratorAccelerator_byoip
    accelerator_test.go:337: Environment variable GLOBALACCELERATOR_BYOIP_IPV4_ADDRESS not set
--- SKIP: TestAccGlobalAcceleratorAccelerator_byoip (0.53s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/globalaccelerator	0.604s

I am a member of AWS Global Accelerator engineering team.

@github-actions
Copy link

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 size/S Managed by automation to categorize the size of a PR. service/globalaccelerator Issues and PRs that pertain to the globalaccelerator service. needs-triage Waiting for first response or review from a maintainer. labels Oct 10, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome @coolfrood 👋

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! 😃

@coolfrood coolfrood changed the title Add support for AWS GlobalAccelerator BYOIP. [WIP] Add support for AWS GlobalAccelerator BYOIP. Oct 10, 2022
@github-actions github-actions bot added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. size/M Managed by automation to categorize the size of a PR. and removed size/S Managed by automation to categorize the size of a PR. labels Oct 10, 2022
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Oct 11, 2022
@ewbankkit
Copy link
Contributor

@coolfrood Thanks for the contribution 👏.
I've left some review comments.
Please also update the documentation page in website/docs/r/globalaccelerator_accelerator.html.markdown.

@coolfrood
Copy link
Author

coolfrood commented Oct 11, 2022

Thanks @ewbankkit. I'll address your comments in next commit.

@github-actions github-actions bot added the documentation Introduces or discusses updates to documentation. label Oct 11, 2022
@coolfrood
Copy link
Author

@ewbankkit I have addressed all except one of your review comments.

@ewbankkit ewbankkit changed the title [WIP] Add support for AWS GlobalAccelerator BYOIP. Add support for AWS GlobalAccelerator BYOIP. Oct 12, 2022
@github-actions github-actions bot added size/L Managed by automation to categorize the size of a PR. and removed size/M Managed by automation to categorize the size of a PR. labels Oct 12, 2022
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=TestAccGlobalAcceleratorAccelerator_' PKG=globalaccelerator ACCTEST_PARALLELISM=2 
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/globalaccelerator/... -v -count 1 -parallel 2  -run=TestAccGlobalAcceleratorAccelerator_ -timeout 180m
=== RUN   TestAccGlobalAcceleratorAccelerator_basic
=== PAUSE TestAccGlobalAcceleratorAccelerator_basic
=== RUN   TestAccGlobalAcceleratorAccelerator_ipAddressType_dualStack
=== PAUSE TestAccGlobalAcceleratorAccelerator_ipAddressType_dualStack
=== RUN   TestAccGlobalAcceleratorAccelerator_byoip
=== PAUSE TestAccGlobalAcceleratorAccelerator_byoip
=== RUN   TestAccGlobalAcceleratorAccelerator_disappears
=== PAUSE TestAccGlobalAcceleratorAccelerator_disappears
=== RUN   TestAccGlobalAcceleratorAccelerator_update
=== PAUSE TestAccGlobalAcceleratorAccelerator_update
=== RUN   TestAccGlobalAcceleratorAccelerator_attributes
=== PAUSE TestAccGlobalAcceleratorAccelerator_attributes
=== RUN   TestAccGlobalAcceleratorAccelerator_tags
=== PAUSE TestAccGlobalAcceleratorAccelerator_tags
=== CONT  TestAccGlobalAcceleratorAccelerator_basic
=== CONT  TestAccGlobalAcceleratorAccelerator_update
--- PASS: TestAccGlobalAcceleratorAccelerator_basic (84.03s)
=== CONT  TestAccGlobalAcceleratorAccelerator_byoip
    accelerator_test.go:338: Environment variable GLOBALACCELERATOR_BYOIP_IPV4_ADDRESS not set
--- SKIP: TestAccGlobalAcceleratorAccelerator_byoip (0.15s)
=== CONT  TestAccGlobalAcceleratorAccelerator_disappears
--- PASS: TestAccGlobalAcceleratorAccelerator_update (192.70s)
=== CONT  TestAccGlobalAcceleratorAccelerator_ipAddressType_dualStack
--- PASS: TestAccGlobalAcceleratorAccelerator_disappears (115.87s)
=== CONT  TestAccGlobalAcceleratorAccelerator_tags
--- PASS: TestAccGlobalAcceleratorAccelerator_ipAddressType_dualStack (80.25s)
=== CONT  TestAccGlobalAcceleratorAccelerator_attributes
--- PASS: TestAccGlobalAcceleratorAccelerator_tags (106.83s)
--- PASS: TestAccGlobalAcceleratorAccelerator_attributes (274.65s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/globalaccelerator	551.881s

@coolfrood coolfrood closed this Oct 12, 2022
@coolfrood coolfrood reopened this Oct 12, 2022
@coolfrood
Copy link
Author

Thanks for fixing the terrafmt error, @ewbankkit. Is there anything else you need?

@ewbankkit
Copy link
Contributor

@coolfrood Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit a2c7f74 into hashicorp:main Oct 12, 2022
@github-actions github-actions bot added this to the v4.35.0 milestone Oct 12, 2022
@github-actions
Copy link

This functionality has been released in v4.35.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

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 Nov 17, 2022
@justinretzolk justinretzolk added the partner Contribution from a partner. label May 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. partner Contribution from a partner. service/globalaccelerator Issues and PRs that pertain to the globalaccelerator service. size/L 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.

Support BYOIP for Global Accelerator in AWS Provider
3 participants