-
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
resource/securityhub_organization_admin_account: new resource #17501
Conversation
734a3a4
to
231acd6
Compare
err := resource.Retry(waiter.AdminAccountNotFoundTimeout, func() *resource.RetryError { | ||
_, err := conn.DisableSecurityHub(&securityhub.DisableSecurityHubInput{}) | ||
|
||
if tfawserr.ErrMessageContains(err, securityhub.ErrCodeInvalidInputException, "Cannot disable Security Hub on the Security Hub administrator") { |
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.
added to account for error when the resource isn't set as a dependency in a config
10672ae
to
5063701
Compare
5063701
to
9c4cfa4
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.
Looks great 🚀
Output from acceptance testing:
--- PASS: TestAccAWSSecurityHub_serial (206.62s)
--- PASS: TestAccAWSSecurityHub_serial/OrganizationAdminAccount (37.96s)
--- PASS: TestAccAWSSecurityHub_serial/OrganizationAdminAccount/basic (21.01s)
--- PASS: TestAccAWSSecurityHub_serial/OrganizationAdminAccount/disappears (16.95s)
--- PASS: TestAccAWSSecurityHub_serial/ProductSubscription (29.71s)
--- PASS: TestAccAWSSecurityHub_serial/ProductSubscription/basic (29.71s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsSubscription (21.40s)
--- PASS: TestAccAWSSecurityHub_serial/StandardsSubscription/basic (21.40s)
--- PASS: TestAccAWSSecurityHub_serial/Account (13.34s)
--- PASS: TestAccAWSSecurityHub_serial/Account/basic (13.34s)
--- PASS: TestAccAWSSecurityHub_serial/Member (28.75s)
--- PASS: TestAccAWSSecurityHub_serial/Member/basic (14.25s)
--- PASS: TestAccAWSSecurityHub_serial/Member/invite (14.50s)
--- PASS: TestAccAWSSecurityHub_serial/ActionTarget (75.45s)
--- PASS: TestAccAWSSecurityHub_serial/ActionTarget/basic (14.23s)
--- PASS: TestAccAWSSecurityHub_serial/ActionTarget/disappears (12.20s)
--- PASS: TestAccAWSSecurityHub_serial/ActionTarget/Description (26.78s)
--- PASS: TestAccAWSSecurityHub_serial/ActionTarget/Name (22.25s)
This has been released in version 3.28.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
Closes #17128
Relates #6674
Output from acceptance testing (Organizations-only account):
Output of acceptance testing (Commercial):
Output of acceptance testing (Us Gov):