-
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
d/aws_securityhub_standards_control_associations: new data source #39334
d/aws_securityhub_standards_control_associations: new data source #39334
Conversation
Community NoteVoting for Prioritization
For Submitters
|
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 @kamilturek - Thanks for your submission!
As of 2023-10-20 we've started to require all net-new data sources use Terraform Plugin Framework.
#32917
https://hashicorp.github.io/terraform-provider-aws/terraform-plugin-development-packages/#which-plugin-version-should-i-use
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!
Hey @jar-b, I'll convert it to the framework. Thanks for letting me know! |
…ol_associations attribute This list attribute stores all fields returned from the `ListStandardsControlAssociations` API. ```console % make testacc PKG=securityhub TESTS=TestAccSecurityHub_serial/StandardsControlAssociationsDataSource make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.22.7 test ./internal/service/securityhub/... -v -count 1 -parallel 20 -run='TestAccSecurityHub_serial/StandardsControlAssociationsDataSource' -timeout 360m --- PASS: TestAccSecurityHub_serial (80.24s) --- PASS: TestAccSecurityHub_serial/StandardsControlAssociationsDataSource (80.24s) --- PASS: TestAccSecurityHub_serial/StandardsControlAssociationsDataSource/basic (80.24s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/securityhub 86.762s ```
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 PKG=securityhub TESTS=TestAccSecurityHub_serial/StandardsControlAssociationsDataSource
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.7 test ./internal/service/securityhub/... -v -count 1 -parallel 20 -run='TestAccSecurityHub_serial/StandardsControlAssociationsDataSource' -timeout 360m
=== RUN TestAccSecurityHub_serial
=== PAUSE TestAccSecurityHub_serial
=== CONT TestAccSecurityHub_serial
=== RUN TestAccSecurityHub_serial/StandardsControlAssociationsDataSource
=== RUN TestAccSecurityHub_serial/StandardsControlAssociationsDataSource/basic
--- PASS: TestAccSecurityHub_serial (63.09s)
--- PASS: TestAccSecurityHub_serial/StandardsControlAssociationsDataSource (63.09s)
--- PASS: TestAccSecurityHub_serial/StandardsControlAssociationsDataSource/basic (63.09s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/securityhub 69.256s
Thanks for your contribution, @kamilturek! 👍 Just adjusted the result slightly to include the full object returned from the |
Totally understandable! There are a bunch of older resources which only return a subset of the API response fields. This is great for simplicity, but for new resources/data sources we tend to stick with matching the AWS API as close as possible to make it easier for users to translate between other interfaces (such as the AWS CLI or API documentation) and Terraform. By no means meant to criticize the initial implementation, just to give some context to why the attributes changed. Thanks again for adding this! 👍 |
This functionality has been released in v5.68.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
This PR adds a
aws_securityhub_standards_control_associations
plural data source.Relations
Relates #33082.
References
https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_ListStandardsControlAssociations.html
Output from Acceptance Testing