action hangs with terraform_wrapper: true
when variables aren't defined
#150
Labels
bug
Something isn't working
terraform_wrapper: true
when variables aren't defined
#150
I was following https://learn.hashicorp.com/tutorials/terraform/github-actions, but forgot to prefix my environment variables with
TF_VAR_
, so they weren't being populated, causingterraform plan
to prompt for them at runtime. However, withterraform_wrapper: true
(the default), theterraform plan
just ran for a while (I killed it after 10 minutes) without exiting. Once I disabled the wrapper, it exited with an error in a second. Based on that message, I was able to find and fix my error, and with that fixed, it worked with the wrapper again.I wonder if
terraform plan
when run with the wrapper is waiting for an input that will never come to it's "enter a value for the variable" prompt? If so, I wonder if the fix involves passing an emptyinput
to@actions/exec
.exec
?setup-terraform/wrapper/terraform.js
Lines 29 to 33 in 625cb76
The text was updated successfully, but these errors were encountered: