-
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
panic: interface conversion: interface {} is nil, not map[string]interface #24881
Comments
Error occurs on an apply. Resources that I am trying to update and delete/create are aws_msk_cluster and aws_mskconnect |
Hey @madengr00 👋 Thank you for taking the time to raise this! So that we have all of the necessary information in order to look into this, can you update the issue description to include all of the information requested in the bug report template? |
Updated as much as I could. |
I face the exact same issue when trying an apply (plan is working) with the following version debug log: The code i wanted to deploy: How the module is called: N.B: it works when I use the old way to set lifecycle and encryption (using block in aws_s3_bucket instead of using dedicated resources) |
So, the tls {} block is supposed to be optional. If I remember correctly,in v 4.13.0, I had to get the plan to run clean, I had to add it in with the tls { I will test removing altogether and trying a new apply in v4.14.0. Update: Does not work to remove it. At that point it plan to change something that isn't changing and results in a new error. |
Note: Updated to using v4.15.0. Still the same error. |
v4.14.0terraform-provider-aws/internal/service/kafka/cluster.go Lines 906 to 928 in 2bae1fb
v4.12.0terraform-provider-aws/internal/service/kafka/cluster.go Lines 800 to 812 in f932b7a
There is a |
I can reproduce this with a test configuration very similar to the one provided:
|
This functionality has been released in v4.16.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. |
name: 🐛 Bug Report
about: Error occurring (panic: interface conversion: interface {} is nil, not map[string]interface) when applying a plan in TFE
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
replaced name with EXAMPLE for privacy
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Plan looks clean in terraform enterprise.
On apply in Terraform Enterprise, we should have been apply two changes;
Actual Behavior
panic error on apply
Steps to Reproduce
Our apply process occurs in a Terraform Enterprise workspace.
terraform apply
Important Factoids
Cluster was originally configured through the UI on AWS.
Created the terraform retroactively and imported it to state. Now, trying to update the configuration with tf.
Errors occured in the plan until we updated to aws.provider 4.13.0.
Plans clean now.
We get the same apply error for both 4.13.0 and 4.14.0
References
This was the issue report that helped me figure out that I needed to use 4.13.0.
#20956 (comment)
The text was updated successfully, but these errors were encountered: