-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
var-file argument gives invalid format #3292
Comments
@noahjl You can't pass a In Terraform, you have two file types:
You must first declare your variables in e.g.
then you can provide a value via a variables file
and run plan or push with the
|
@ringods you gave a perfect explanation here - thank you! |
Awesome explanation !!! worked like a charm. |
As reported and described in hashicorp#3292
As reported and described in hashicorp#3292
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. |
Using terraform 0.6.3 (on Fedora 22 x64) to deploy concurrent environments to AWS using -state and -var-file arguments.
The setup uses separate file for variables (variables.tf), outputs (outputs.tf) and resources ($resource.tf).
When deploying without the -var-file argument there is no issues. If I use the -var-file=variables.tf it throws an error that I suspect is a bug or user error. Different file names (i.e. demo.tfvars, demo_variables.tf) don't seem to make a difference.
Please let me know if any additional info would be helpful.
Thank you
Reviewed Issues #2659, #1084 as they seemed possibly related.
The text was updated successfully, but these errors were encountered: