-
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
Error on plan refreshing firehose state: insufficient items for attribute output_format_configuration #8982
Comments
My guess would be to handle this here. We could move up the nested |
same problem here +1 |
This might be related to #9048, there seem to be a lot of 'insufficent items for attribute xyz' errors in terraform 0.12. It has happened with resources:
This makes upgrading to TF 0.12 impossible for us currently. |
It's been >month since last update. Meanwhile terraform 0.12 cannot be used to create firehose delivery streams! This is not a corner case. Very basic examples from the documentation do not work because of this bug. Can we have some update please? We're stuck after migrating to 0.12 and are now forced to manage our resources manually. |
Hitting this with the GCP provider in Like @mikea mentioned, very basic examples (e.g. the example from the GCP provider docs) trigger this bug. Hoping somebody can provide an update here soon. |
I was able to successfully refresh by pulling state, removing the data_format_conversion_configuration state from the state file, and pushing state |
however, running plan still doesn't work |
For the original issue report, the For the other cases of |
This has been released in version 2.25.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! |
The bug persist with me even after using version 2.25.0 of AWS provider. Im still getting Error: insufficient items for attribute. It also does not matter if i add those parameters anyway |
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
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Full log
https://gist.github.com/staffan-einarsson/c7394b5fc331ffc7ff08f2f8ae48d5ca
Error lines
Expected Behavior
No errors. In-memory state should be refreshed and plan should be shown.
Actual Behavior
In-memory state refresh produces error.
Steps to Reproduce
Assuming an empty initial terraform state and the configuration file shown above. For actual logs and state see https://gist.github.com/staffan-einarsson/c7394b5fc331ffc7ff08f2f8ae48d5ca.
terraform apply
to create the firehose, bucket and role, and produce the terraform state shown inbefore_manual_touch.tfstate
.aws firehose describe-delivery-stream --delivery-stream-name brandslangen
to print AWS description of the firehose, shown indescribe_api_call_before_manual_touch.log
.brandslangen
.aws firehose describe-delivery-stream --delivery-stream-name brandslangen
to print AWS description of the firehose, shown indescribe_api_call_after_manual_touch.log
.terraform refresh
to refresh the state file, shown inafter_manual_touch.tfstate
.terraform plan
which will fail to parse the terraform state.Additional details
Diffing
describe_api_call_before_manual_touch.log
anddescribe_api_call_after_manual_touch.log
shows that during the manual modification AWS has added some attributes to the firehose configuration, even though it means the same thing.Diffing
before_manual_touch.tfstate
andafter_manual_touch.tfstate
shows that terraform does not interpret these configurations as equivalent, but instead records state that in some cases would lead to unintended state diffs, and in this case even produces corrupt state (input_format_configuration
,output_format_configuration
andschema_configuration
are required attributes that can not be empty).Here we can also see the same thing happening with
processors
inprocessing_configuration
, which seems to be what #4392 is about.References
The text was updated successfully, but these errors were encountered: