-
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 resource: aws_securityhub_standards_control #14714
New resource: aws_securityhub_standards_control #14714
Conversation
ff595c7
to
96cad0c
Compare
@DrFaust92 Why does |
aaf0e84
to
6fe8166
Compare
I think that the issue lies with the name of |
@DrFaust92 Thank you for the suggestion 🙇 The problem was in trailing space 😅 |
404e956
to
3605e16
Compare
Just to not forget, I've submitted AWS feature request support ticket to provide any of these options in SecurityHub API and AWS Go DSK to get the specific standard control:
This should allow to rid of the local filtering. |
Relates: #15090. |
|
c4a960f
to
cba70bf
Compare
Hello, |
Hi @ewbankkit any news regarding the merge of this PR? |
@Tensho Could you please merge latest with your changes? |
c1c5095
to
dd6bf08
Compare
Hello, |
Hi @ewbankkit, could we please merge this? |
a2a4c14
to
c578a79
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 TEST=./aws TESTARGS='-run=TestAccAWSSecurityHub_serial/StandardsSubscription'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSecurityHub_serial/StandardsSubscription -timeout 180m
=== RUN TestAccAWSSecurityHub_serial
=== RUN TestAccAWSSecurityHub_serial/StandardsSubscription
=== RUN TestAccAWSSecurityHub_serial/StandardsSubscription/basic
=== RUN TestAccAWSSecurityHub_serial/StandardsSubscription/disappears
--- PASS: TestAccAWSSecurityHub_serial (35.15s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsSubscription (35.15s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsSubscription/basic (18.83s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsSubscription/disappears (16.32s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 38.304s
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSSecurityHub_serial/StandardsControl'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSecurityHub_serial/StandardsControl -timeout 180m
=== RUN TestAccAWSSecurityHub_serial
=== RUN TestAccAWSSecurityHub_serial/StandardsControl
=== RUN TestAccAWSSecurityHub_serial/StandardsControl/basic
=== RUN TestAccAWSSecurityHub_serial/StandardsControl/DisabledControlStatus
=== RUN TestAccAWSSecurityHub_serial/StandardsControl/EnabledControlStatusAndDisabledReason
--- PASS: TestAccAWSSecurityHub_serial (49.49s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsControl (49.49s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsControl/basic (20.87s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsControl/DisabledControlStatus (17.66s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsControl/EnabledControlStatusAndDisabledReason (10.95s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 53.082s
GovCloud
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSSecurityHub_serial/StandardsSubscription'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSecurityHub_serial/StandardsSubscription -timeout 180m
=== RUN TestAccAWSSecurityHub_serial
=== RUN TestAccAWSSecurityHub_serial/StandardsSubscription
=== RUN TestAccAWSSecurityHub_serial/StandardsSubscription/basic
=== RUN TestAccAWSSecurityHub_serial/StandardsSubscription/disappears
--- PASS: TestAccAWSSecurityHub_serial (46.33s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsSubscription (46.33s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsSubscription/basic (25.05s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsSubscription/disappears (21.29s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 49.527s
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSSecurityHub_serial/StandardsControl'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSecurityHub_serial/StandardsControl -timeout 180m
=== RUN TestAccAWSSecurityHub_serial
=== RUN TestAccAWSSecurityHub_serial/StandardsControl
=== RUN TestAccAWSSecurityHub_serial/StandardsControl/basic
=== RUN TestAccAWSSecurityHub_serial/StandardsControl/DisabledControlStatus
=== RUN TestAccAWSSecurityHub_serial/StandardsControl/EnabledControlStatusAndDisabledReason
--- PASS: TestAccAWSSecurityHub_serial (60.13s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsControl (60.13s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsControl/basic (23.57s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsControl/DisabledControlStatus (22.34s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsControl/EnabledControlStatusAndDisabledReason (14.22s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 63.236s
@Tensho Thanks for the contribution 🎉 👏.
|
… status in 'testAccCheckAWSSecurityHubStandardsSubscriptionDestroy'. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSSecurityHub_serial/StandardsSubscription' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSecurityHub_serial/StandardsSubscription -timeout 180m === RUN TestAccAWSSecurityHub_serial === RUN TestAccAWSSecurityHub_serial/StandardsSubscription === RUN TestAccAWSSecurityHub_serial/StandardsSubscription/basic === RUN TestAccAWSSecurityHub_serial/StandardsSubscription/disappears --- PASS: TestAccAWSSecurityHub_serial (39.10s) --- PASS: TestAccAWSSecurityHub_serial/StandardsSubscription (39.10s) --- PASS: TestAccAWSSecurityHub_serial/StandardsSubscription/basic (22.59s) --- PASS: TestAccAWSSecurityHub_serial/StandardsSubscription/disappears (16.51s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 42.508s
This functionality has been released in v3.50.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 #11624
Release note for CHANGELOG:
Example Usage
Acceptance Tests
Notes
terraform-plugin-sdk/v2
compatible resource. Please don't hesitate to refer me to the best practices according to this shift.time.Time
attribute type in this provider and chose a simpleString()
conversion.Create()
to accept it into the management andDelete()
just removes from the state.Read()
func call at the end ofUpdate()
func and some not. I do believe if a resource has computed attributes any update (for synchronous API) should re-read them to the state. Please correct me if I'm wrong.