-
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
New Data Source: aws_vpc_public_ipv4_pools #28245
New Data Source: aws_vpc_public_ipv4_pools #28245
Conversation
Community NoteVoting for Prioritization
For Submitters
|
@ewbankkit Sorry to bother you about this, but I wanted to ask you because you helped out with the original version of this PR (from before I caused an irreconcilable gitastrophe on that PR's branch): It's been a few months since I posted this and I think it just needs some code review from a maintainer to move forward. Do you know if there's anything I can/should do to request some help with that? My team at work has a pressing need for this data source and I'd love to be able to deliver it! 😅 |
(For the record: after this most recent commit ^^, I think I am passing all lint checks again). |
Acceptance test output: % make testacc TESTARGS='-run=TestAccEC2PublicIPv4PoolsDataSource_' PKG=ec2 ACCTEST_PARALLELISM=3 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 3 -run=TestAccEC2PublicIPv4PoolsDataSource_ -timeout 180m === RUN TestAccEC2PublicIPv4PoolsDataSource_basic === PAUSE TestAccEC2PublicIPv4PoolsDataSource_basic === RUN TestAccEC2PublicIPv4PoolsDataSource_tags === PAUSE TestAccEC2PublicIPv4PoolsDataSource_tags === CONT TestAccEC2PublicIPv4PoolsDataSource_basic === CONT TestAccEC2PublicIPv4PoolsDataSource_tags --- PASS: TestAccEC2PublicIPv4PoolsDataSource_basic (13.84s) --- PASS: TestAccEC2PublicIPv4PoolsDataSource_tags (13.85s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 19.297s
Acceptance test output: % make testacc TESTARGS='-run=TestAccEC2PublicIPv4PoolDataSource_' PKG=ec2 ACCTEST_PARALLELISM=3 ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 3 -run=TestAccEC2PublicIPv4PoolDataSource_ -timeout 180m === RUN TestAccEC2PublicIPv4PoolDataSource_basic === PAUSE TestAccEC2PublicIPv4PoolDataSource_basic === CONT TestAccEC2PublicIPv4PoolDataSource_basic public_ipv4_pool_data_source_test.go:49: skipping since no EC2 Public IPv4 Pools found --- SKIP: TestAccEC2PublicIPv4PoolDataSource_basic (0.88s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 7.321s
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=TestAccEC2PublicIPv4Pool' PKG=ec2 ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 3 -run=TestAccEC2PublicIPv4Pool -timeout 180m
=== RUN TestAccEC2PublicIPv4PoolDataSource_basic
=== PAUSE TestAccEC2PublicIPv4PoolDataSource_basic
=== RUN TestAccEC2PublicIPv4PoolsDataSource_basic
=== PAUSE TestAccEC2PublicIPv4PoolsDataSource_basic
=== RUN TestAccEC2PublicIPv4PoolsDataSource_tags
=== PAUSE TestAccEC2PublicIPv4PoolsDataSource_tags
=== CONT TestAccEC2PublicIPv4PoolDataSource_basic
=== CONT TestAccEC2PublicIPv4PoolsDataSource_tags
=== CONT TestAccEC2PublicIPv4PoolsDataSource_basic
=== CONT TestAccEC2PublicIPv4PoolDataSource_basic
ec2_public_ipv4_pool_data_source_test.go:49: skipping since no EC2 Public IPv4 Pools found
--- SKIP: TestAccEC2PublicIPv4PoolDataSource_basic (0.84s)
--- PASS: TestAccEC2PublicIPv4PoolsDataSource_basic (12.61s)
--- PASS: TestAccEC2PublicIPv4PoolsDataSource_tags (12.62s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 17.951s
@gatsbysghost Thanks for the contribution 🎉 👏. |
…ed: 4; Actual: 2]'.
…ld be surrounded by blank lines'.
@ewbankkit Fab! Thank you so much for your help! 😁 |
This functionality has been released in v4.59.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
(Note: I originally raised this as Draft PR #28203, but I accidentally broke git on that & so just decided to start over here with the ready-for-review PR).
Presently, there are some gaps in coverage relating to IPv4 Pools. #17425 raises the following user story (among others):
This gap impacted my org as well (and I have seen several random users on various sites requesting this particular feature), which is why I am submitting this PR, in part-fulfillment of the needs of #17425.
This PR therefore adds the following items:
aws_vpc_public_ipv4_pools
Relations
Relates #17425
Output from Acceptance Testing
n/a (not possible to run because it requires access to public IPv4 addresses). I should note here that all existing tests for BYOIP AND all IPAM variations simply skip any kind of AccTest for public IPv4 addresses, for obvious reasons. There's really nothing I can see in the existing framework to to pattern this approach off of, and I'm struggling to think how we would do this--apart from, e.g., spoofing the existence of public IPv4 pools in the tfstate.
per @ewbankkit (#28203 (comment)):