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

feat: add aws_vpc_ipam & aws_vpc_ipams data sources #40459

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Volatus
Copy link

@Volatus Volatus commented Dec 5, 2024

Description

This PR introduces 2 new data sources: aws_vpc_ipam and aws_vpc_ipams, following the convention of the aws_vpc_ipam_pool and aws_vpc_ipam_pools data sources.

Relations

References

Output from Acceptance Testing

make testacc TESTS=TestAccEC2AwsVpcIpamDataSourceBasic PKG=ec2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2AwsVpcIpamDataSourceBasic'  -timeout 360m
2024/12/11 11:05:48 Initializing Terraform AWS Provider...
=== RUN   TestAccEC2AwsVpcIpamDataSourceBasic
=== PAUSE TestAccEC2AwsVpcIpamDataSourceBasic
=== CONT  TestAccEC2AwsVpcIpamDataSourceBasic
--- PASS: TestAccEC2AwsVpcIpamDataSourceBasic (34.38s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/ec2        38.758smake testacc TESTS=TestAccEC2AwsVpcIpams PKG=ec2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2AwsVpcIpams'  -timeout 360m
2024/12/11 11:06:58 Initializing Terraform AWS Provider...
=== RUN   TestAccEC2AwsVpcIpamsDataSourceTiered
=== PAUSE TestAccEC2AwsVpcIpamsDataSourceTiered
=== CONT  TestAccEC2AwsVpcIpamsDataSourceTiered
--- PASS: TestAccEC2AwsVpcIpamsDataSourceTiered (41.46s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/ec2        45.731s
...

Signed-off-by: Ismayil Mirzali [email protected]

@Volatus Volatus requested a review from a team as a code owner December 5, 2024 11:26
Copy link

github-actions bot commented Dec 5, 2024

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 tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. generators Relates to code generators. service/ipam Issues and PRs that pertain to the ipam service. needs-triage Waiting for first response or review from a maintainer. labels Dec 5, 2024
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 @Volatus 👋

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

@jar-b
Copy link
Member

jar-b commented Dec 5, 2024

Hi @Volatus - Thanks for your submission!

As of 2023-10-20 all net-new data sources are required to use Terraform Plugin Framework. More context is available in this pinned issue and the provider contributor guide.

Once prioritized, maintainers will convert Plugin-SDK based data sources as part of the review process, but if you'd like to do the conversion in the meantime we would greatly appreciate it!

@jar-b jar-b added new-data-source Introduces a new data source. and removed needs-triage Waiting for first response or review from a maintainer. labels Dec 5, 2024
@Volatus
Copy link
Author

Volatus commented Dec 5, 2024

@jar-b Understood, I'll work on converting this.

@Volatus Volatus force-pushed the feat/add-ipam-data-sources branch 3 times, most recently from f15dfa6 to 0db6217 Compare December 11, 2024 09:11
@Volatus
Copy link
Author

Volatus commented Dec 11, 2024

@jar-b I've made the necessary changes to use the plugin framework instead of SDK v2. Let me know if something needs changing.

@github-actions github-actions bot added the documentation Introduces or discusses updates to documentation. label Dec 11, 2024
@Volatus Volatus force-pushed the feat/add-ipam-data-sources branch from 0db6217 to de734be Compare December 11, 2024 09:32
@Volatus Volatus force-pushed the feat/add-ipam-data-sources branch from de734be to 774d8c8 Compare January 2, 2025 08:17
@gflex
Copy link

gflex commented Jan 9, 2025

@jar-b , @ewbankkit, any chance this gets any attention, please? Some of us do rely on this functionality and it's a ready PR just dusting on the shelf for over a month.

@Volatus Volatus force-pushed the feat/add-ipam-data-sources branch from 350f278 to e634bd6 Compare January 10, 2025 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Introduces or discusses updates to documentation. generators Relates to code generators. new-data-source Introduces a new data source. service/ipam Issues and PRs that pertain to the ipam service. 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.

3 participants