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

New data source: aws_subnets #18803

Merged
merged 7 commits into from
Aug 17, 2021

Conversation

farhanangullia
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #18060

Release note for CHANGELOG:

aws_subnets

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccDataSourceAwsSubnets'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsSubnets -timeout 180m
=== RUN   TestAccDataSourceAwsSubnets_basic
=== PAUSE TestAccDataSourceAwsSubnets_basic
=== RUN   TestAccDataSourceAwsSubnets_filter
=== PAUSE TestAccDataSourceAwsSubnets_filter
=== CONT  TestAccDataSourceAwsSubnets_basic
=== CONT  TestAccDataSourceAwsSubnets_filter
--- PASS: TestAccDataSourceAwsSubnets_filter (99.45s)
--- PASS: TestAccDataSourceAwsSubnets_basic (157.00s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       158.517s

...

@farhanangullia farhanangullia requested a review from a team as a code owner April 12, 2021 18:49
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/ec2 Issues and PRs that pertain to the ec2 service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Apr 12, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Apr 12, 2021
@YakDriver
Copy link
Member

@farhanangullia This looks like a great PR at first glance! Tests, code, and submission seem to be in order. Note, this is a quick scan. We aren't able to get to everything we'd like in a day but hopefully we'll be able to give this a more careful review soon!

@YakDriver YakDriver removed the needs-triage Waiting for first response or review from a maintainer. label Apr 15, 2021
@farhanangullia
Copy link
Contributor Author

@farhanangullia This looks like a great PR at first glance! Tests, code, and submission seem to be in order. Note, this is a quick scan. We aren't able to get to everything we'd like in a day but hopefully we'll be able to give this a more careful review soon!

Thank you @YakDriver 🙏

@farhanangullia farhanangullia force-pushed the f-data_source_aws_subnets branch from 5c95178 to c915657 Compare May 17, 2021 15:00
@FireballDWF
Copy link

@ewbankkit review requested

@ewbankkit ewbankkit force-pushed the f-data_source_aws_subnets branch from c915657 to 5495c57 Compare August 17, 2021 15:01
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=TestAccDataSourceAwsSubnets_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsSubnets_ -timeout 180m
=== RUN   TestAccDataSourceAwsSubnets_basic
=== PAUSE TestAccDataSourceAwsSubnets_basic
=== RUN   TestAccDataSourceAwsSubnets_filter
=== PAUSE TestAccDataSourceAwsSubnets_filter
=== CONT  TestAccDataSourceAwsSubnets_basic
=== CONT  TestAccDataSourceAwsSubnets_filter
--- PASS: TestAccDataSourceAwsSubnets_filter (30.77s)
--- PASS: TestAccDataSourceAwsSubnets_basic (41.93s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	45.334s

@ewbankkit
Copy link
Contributor

@farhanangullia Thanks for the contribution 🎉 👏.
In our upcoming (Version 4.0 Release)[https://github.com//issues/20433] we will expect plural data sources to return an empty list if no matching resources are found, so I went ahead and made that minor change to the PR.

@ewbankkit ewbankkit merged commit 5fb3cd9 into hashicorp:main Aug 17, 2021
@github-actions github-actions bot added this to the v3.55.0 milestone Aug 17, 2021
@github-actions
Copy link

This functionality has been released in v3.55.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!

@yermulnik
Copy link

Out of interest: it looks like aws_subnets provides more convenience and flexibility over the aws_subnet_ids resource — are there any plans to deprecate the latter in favour of the former?

@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 Sep 20, 2021
@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. provider Pertains to the provider itself, rather than any interaction with AWS. service/ec2 Issues and PRs that pertain to the ec2 service. size/XL 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.

aws_subnet_ids data source updated to not require vpc_id
6 participants