-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Unset variable in backend.tf causes crash #33622
Comments
Hi @voltagex, thanks for filing this! I can confirm I can replicate this. Interestingly I've found it's not the unset variable that's causing the crash but the presence of the Definitely still a bug, and I'll investigate this a bit more to see what sort of fix we can get in place. |
I didn't think of modifying the value too much when I got that crash - good catch! |
Okay, I've investigated this and discovered the root cause. During the There's two options I can see, the first is to make the backend loading process more careful so that it doesn't assume the configuration is in a valid state. The second would be to make Terraform error out after it finds bad configuration even if it hasn't yet checked the version requirements. I haven't decided which of the two I like more yet. |
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
backend.tf
Debug Output
Expected Behavior
Probably an error about variables not being supported in backend.tf, or an error about the variable not being set
Actual Behavior
Crash, as seen above
Steps to Reproduce
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: