-
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
r/aws_securityhub_standards_control_association: new resource #39511
r/aws_securityhub_standards_control_association: new resource #39511
Conversation
Community NoteVoting for Prioritization
For Submitters
|
The failed check is not related to the PR. |
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 TESTARGS='-run=TestAccSecurityHub_serial/StandardsControlAssociation' PKG=securityhub
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.1 test ./internal/service/securityhub/... -v -count 1 -parallel 20 -run=TestAccSecurityHub_serial/StandardsControlAssociation -timeout 360m
=== RUN TestAccSecurityHub_serial
=== PAUSE TestAccSecurityHub_serial
=== CONT TestAccSecurityHub_serial
=== RUN TestAccSecurityHub_serial/StandardsControlAssociationsDataSource
=== RUN TestAccSecurityHub_serial/StandardsControlAssociationsDataSource/basic
=== RUN TestAccSecurityHub_serial/StandardsControlAssociation
=== RUN TestAccSecurityHub_serial/StandardsControlAssociation/basic
--- PASS: TestAccSecurityHub_serial (79.08s)
--- PASS: TestAccSecurityHub_serial/StandardsControlAssociationsDataSource (35.06s)
--- PASS: TestAccSecurityHub_serial/StandardsControlAssociationsDataSource/basic (35.06s)
--- PASS: TestAccSecurityHub_serial/StandardsControlAssociation (44.02s)
--- PASS: TestAccSecurityHub_serial/StandardsControlAssociation/basic (44.02s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/securityhub 84.432s
@kamilturek Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.70.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 introduces a new
aws_securityhub_standards_control_association
resource for enabling/disabling a control in a specific standard. Together with theaws_securityhub_standards_control_associations
data source, It can be also used to disable the control in all standards.Basic usage
Disabling security control in all standards
Relations
Closes #33406.
References
Output from Acceptance Testing