-
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
[Bug]: Changes to aws_securityhub_account resource breaks contract #30980
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hey @ctrawick 👋 Thank you for taking the time to raise this! Are you able to supply a sample Terraform configuration and debug logs (redacted as necessary) so that we have the necessary information in order to look into this? |
@justinretzolk The issue comes from upgrading an already applied
And here is the error:
|
This feature added in this pr is the source of the issue... #30692 |
@justinretzolk Anything else you need on this one? |
Hey @lorengordon 👋 Thank you for checking in on this! Providing a sample Terraform configuration that can reproduce this issue, as well as debug logs (redacted as needed) would be helpful if you're able to provide them. Unfortunately I can't provide an ETA on when this will be looked into due to the potential of shifting priorities. We prioritize by count of 👍 reactions and a few other things (more information on our prioritization guide if you're interested). |
The plan I posted above basically has the config that is the problem. There isn't much more to it. It seems any version of the aws provider >= 4.64.0 is broken for the aws_securityhub_account resource, when securityhub is managed by the org, and the org has enabled the aggregated securityhub findings. |
Oh, also finding that the Minimal reproducing config is just: resource "aws_securityhub_account" "this" {} results in:
which can actually apply successfully, somehow, but then results in a perpetual diff |
We are also running into this:
Results in:
|
setting it explicitly at member account is a workaround: resource "aws_securityhub_account" "_" { |
This functionality has been released in v5.14.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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
v1.3.9
AWS Provider Version
4.64.0
Affected Resource(s)
aws_securityhub_account
Expected Behavior
Missing optional fields should not impact existing resources.
Actual Behavior
~ resource "aws_securityhub_account" "main" {
(https://gitlab.com/XXXXXX) ~ control_finding_generator = "STANDARD_CONTROL" -> "SECURITY_CONTROL"
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Requires multiple runs across multiple versions
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: