We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
--var-file
Using --var in combination with --var-file results in --var being ignored.
$cat my.tfvars image_id = "xyz" $tfvar . --var-file my.tfvars image_id = "xyz" $tfvar . --var=image_id="abc" image_id = "abc" ## Not expected image_id should be "abc" $tfvar . --var-file my.tfvars --var=image_id="abc" image_id = "xyz" ##Ordering does not make a difference $tfvar . --var=image_id="abc" --var-file my.tfvars image_id = "xyz"
The text was updated successfully, but these errors were encountered:
@shihanng Should this stay open?
Sorry, something went wrong.
Sorry for the (1 year 😓) late reply. I think it should follow the precedence as stated in https://developer.hashicorp.com/terraform/language/values/variables#variable-definition-precedence.
Will take deeper look when I am more available 🙏
Happy to accept PR.
No branches or pull requests
Using
--var
in combination with--var-file
results in--var
being ignored.The text was updated successfully, but these errors were encountered: