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
Terraform 1.3.7 fails to destroy due dynamic variables output #32576
Comments
Hi @murakest, Thanks for filing the issue. In order to proceed here we're going to need more information about the configuration and how it failed. If a minimal reproduction case is not possible, can you start with the Thanks! |
Hi @jbardin, I have attached trace log with removed sensitive information and update main code part. I hope this will help to identify the issue we are facing with the newest terraform version |
Thanks @murakest, The configuration still isn't complete enough to determine exactly what is going on, but coincidentally I had another reproducible issue in the same area! I think #32583 is going to take care of your problem as well, since I can replicate the same error condition which will be resolved. |
1.3.8 version should have this fixed? Or we need to wait longer before testing? |
I think the linked PR is very likely going to resolve this issue (if you want to build from the v1.3 branch you can verify for yourself). Without a complete reproduction however I'm not certain, so I was waiting for confirmation after release. |
I have build from v1.3 branch and the destroy still failed Terraform v1.3.8-dev
on linux_amd64
commit 21024a4aca5f9d294fea857c1db7ce16543d544c (HEAD -> v1.3, origin/v1.3)
Error: Invalid index
on main.tf line 565, in locals:
565: for item in keys(module.tier1_win_keyvault_secrets[0].keyvault_secrets[0]) :
├────────────────
│ module.tier1_win_keyvault_secrets is empty tuple
The given key does not identify an element in this collection value: the
collection has no elements. |
I have sold the issue. It seems was manual dependency from resource that affected destroy part. Now everything is working fine with version 1.3.7 |
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 Version
Terraform Configuration Files
Keyvault module output
Main terraform file part code
Debug Output
destroy_debug_trace.zip
Expected Behavior
Terraform successfully destroy existing infrastructure.
Actual Behavior
terraform complains due to missing index
Object output exist in terraform state file and module returns index not empty one.
Terraform successfully destroy infrastructure after apply, but on destroy I get an error.
1.2.9 version works fine
Steps to Reproduce
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: