Open Tobjoern opened 10 months ago
I'm hitting the same issue, what are we missing?
OK in my case, the issue was coming from missing double quotes in the resulting string, thanks yaml for you sloppy string handling!
I had this:
env:
TF_VAR_image_tag: "latest"
but I actually needed to do this:
env:
TF_VAR_image_tag: '"latest"'
this should probably be documented somewhere.
Apologies for the confusion. We went ahead and pointed out this detail in the create-run
action documentation.
Looking into how we can improve this experience in the future.
Let's say I have hundrads of variables with their values in my env/dev.tfvars
, and currently with terraform cli
I am passing terraform plan -var-file="./env/dev.tfvars"
how can I do with this action: https://github.com/hashicorp/tfc-workflows-github?
I'm struggling to pass in a variable at runtime. I used the learn tfc tutorial to get a basic project going.
The projects works fine, when declaring variable in the interface, but it doesn't work at all, when trying to pass them in via en variables. I modified the 'main.tf' file:
And try to run tf in an action:
However in the tfc console I receive the error:
Am I missing something?