-
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
Remote terraforom plan reports missing input vars #23115
Comments
I'm running into this same issue and earlier opened a ticket with Hashicorp support about it. This doesn't just happen on a CLI-initialized Edit: I just tried 0.12.10 and it works as-expected. So regression, I guess. |
We ran into this too, but there's a cure! You have to set vars for every variable you use. It's a bit annoying that in what's technically a patch release there was a breaking change, but oh well. From an interface perspective this makes a lot of sense. If like us, you set variables in the backend that aren't declared in the repo, you just have to give them defaults.
|
Thanks for the reports! We're looking into this, and have a suspected source (#23040) but will update as we progress on our investigation. Thank you for noting a workaround, @WillBeebe! |
Hi all! Thanks again for reporting this and sharing workarounds. The fix for this regression is in the v0.12.12 release, which is now available for selection on Terraform Cloud. Because this bug is an interaction between Terraform CLI and Terraform Cloud, it's unfortunately important to upgrade both your local CLI executable and the version selected on the remote workspace. v0.12.11 is not functional either as a remote operations client or within the Terraform Cloud remote execution environment. |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi,
I'm trying to run terraform plan on a remote backend (terraform cloud) with 0.12.11 however it always says variable not set. I suspect this is related to #21659
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
Expected Behavior
Remote terraform plan should be run in the cloud where all variables are already set
Actual Behavior
Terraform plan reports missing variables
Steps to Reproduce
terraform init
with backend set to terraform cloudterraform plan
References
The text was updated successfully, but these errors were encountered: