-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Securityhub recent MemberStatus changes #16403
Comments
I am also facing this issue on GovCloud |
I'm seeing this also. The
|
Has anyone opened an AWS Support case to confirm if this change was planned and permanent? |
@bflad No support case yet, but the change is in the docs... https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_Member.html
|
I just opened a support case to confirm this change to the MemberStatus value was intentional. |
Highlights from our support ticket response
|
Okay, thank you for that very helpful information. I have requested that the fix include both the old and new values, since Organizations support is not available in all regions. I would expect that we can get something out later today or tomorrow. |
@bflad Just confirming AWS Support responded to me with the same information.
|
The fix to support both the old and new member status values has been merged and will release with version 3.18.0 of the Terraform AWS Provider, likely within the next 24 hours. Thank you to @reactiveinactive for the quick implementation work. 👍 |
This has been released in version 3.18.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! |
Well, I just updated to 3.18.0, but I'm still seeing the resource cycle... 🤔
|
False alarm, all is well. Had to clear out the terraform cache for some reason. /shrug |
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! |
AWS released changes today to SecurityHub that changed the MemberStatus fields to contain a few different values then is currently supported by the terraform AWS provider. Because of this change the "invited" field is not correctly calculated when retrieving the current SecurityHub member subscription
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform: v0.12.29
AWS Provider: 3.17.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/reactiveinactive/862d8b3e4928918b95c06983e7418f1b
Panic Output
Expected Behavior
After the Securityhub invite is accepted by the master the terraform run should run without any changes
Actual Behavior
After accepting the securityhub invitation the resource assumes the invitation is not performed yet and tries to perform a new one.
-/+ resource "aws_securityhub_member" "member" {
account_id = "00000000000"
email = "my.email@email.com"
~ id = "00000000000" -> (known after apply)
~ invite = false -> true # forces replacement
~ master_id = "11111111111111" -> (known after apply)
~ member_status = "Enabled" -> (known after apply)
}
Steps to Reproduce
Important Factoids
Issue is occurring since today due to recent AWS API changes
https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_Member.html
https://github.com/aws/aws-sdk-java/blame/a23c826512114220ff623b9d449489c3822b058e/aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/Member.java#L71
References
The text was updated successfully, but these errors were encountered: