-
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_regions #12269
New data source - aws_regions #12269
Conversation
171b7cf
to
634339b
Compare
@szczad Thanks for this. |
@ewbankkit Is there any announcement for that? Apart from the comment I've dug out there is no guideline for that approach. |
@ewbankkit Ahh... Thanks for catching that. Simple typo. |
Verified acceptance tests: % make testacc TEST=./aws TESTARGS='-run=TestAccDataSourceAwsRegions_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 1 -run=TestAccDataSourceAwsRegions_ -timeout 120m
=== RUN TestAccDataSourceAwsRegions_Basic
=== PAUSE TestAccDataSourceAwsRegions_Basic
=== RUN TestAccDataSourceAwsRegions_OptIn
=== PAUSE TestAccDataSourceAwsRegions_OptIn
=== RUN TestAccDataSourceAwsRegions_AllRegions
=== PAUSE TestAccDataSourceAwsRegions_AllRegions
=== CONT TestAccDataSourceAwsRegions_Basic
--- PASS: TestAccDataSourceAwsRegions_Basic (26.88s)
=== CONT TestAccDataSourceAwsRegions_AllRegions
--- PASS: TestAccDataSourceAwsRegions_AllRegions (27.00s)
=== CONT TestAccDataSourceAwsRegions_OptIn
--- PASS: TestAccDataSourceAwsRegions_OptIn (58.98s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 114.160s |
website/docs/d/regions.html.markdown
Outdated
Provides list of all enabled AWS regions | ||
--- | ||
|
||
# Data Source: aws_region |
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.
aws_regionS?
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.
Good catch! Fixed the typo.
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.
Hi @szczad 👋 Thank you for submitting this. Its looking pretty good, just some touch up work and this should be good to go. Please reach out with any questions or if you do not have time to implement the feedback. 👍
Change the way that data source handles all the regions Readme for data.aws_regions Tests for data.aws_regions data source Add the data source to master document
23d236c
to
1592ad9
Compare
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.
Thanks so much for your work here, @szczad 🚀
Output from acceptance testing:
--- PASS: TestAccDataSourceAwsRegions_Basic (15.47s)
--- PASS: TestAccDataSourceAwsRegions_AllRegions (15.52s)
--- PASS: TestAccDataSourceAwsRegions_Filter (15.53s)
This has been released in version 2.58.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 for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Relates: #12270
Release note for CHANGELOG:
This pull request adds another resource
aws_regions
that can list all available regions by op-in status:opted-in
,not-opted-in
andopt-in-not-required
(docs)Output from acceptance testing: