-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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_ec2_instance_types #21850
Conversation
6062810
to
6b84b35
Compare
6b84b35
to
5206d2e
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.
LGTM 🚀.
Commercial
% make testacc TESTS=TestAccEC2InstanceTypesDataSource_ PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2InstanceTypesDataSource_' -timeout 180m
=== RUN TestAccEC2InstanceTypesDataSource_basic
=== PAUSE TestAccEC2InstanceTypesDataSource_basic
=== RUN TestAccEC2InstanceTypesDataSource_filter
=== PAUSE TestAccEC2InstanceTypesDataSource_filter
=== CONT TestAccEC2InstanceTypesDataSource_basic
=== CONT TestAccEC2InstanceTypesDataSource_filter
--- PASS: TestAccEC2InstanceTypesDataSource_filter (21.10s)
--- PASS: TestAccEC2InstanceTypesDataSource_basic (21.80s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 25.337s
GovCloud
% make testacc TESTS=TestAccEC2InstanceTypesDataSource_ PKG=ec2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2InstanceTypesDataSource_' -timeout 180m
=== RUN TestAccEC2InstanceTypesDataSource_basic
=== PAUSE TestAccEC2InstanceTypesDataSource_basic
=== RUN TestAccEC2InstanceTypesDataSource_filter
=== PAUSE TestAccEC2InstanceTypesDataSource_filter
=== CONT TestAccEC2InstanceTypesDataSource_basic
=== CONT TestAccEC2InstanceTypesDataSource_filter
--- PASS: TestAccEC2InstanceTypesDataSource_filter (22.18s)
--- PASS: TestAccEC2InstanceTypesDataSource_basic (22.24s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 25.698s
@rrangith Thanks for the contribution 🎉 👏. I tweaked the acceptance test a bit to
|
This functionality has been released in v3.67.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. |
Community Note
Closes #21849
This pr uses code based on the existing
instance_type_offerings
code:https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/ec2/instance_type_offerings_data_source.go
https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/ec2/instance_type_offerings_data_source_test.go
Output from acceptance testing: