-
Notifications
You must be signed in to change notification settings - Fork 881
bug: cli/api: terraform.tfvars and *.auto.tfvars are silently ignored #8501
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
Comments
In this case, we probably shouldn't upload the file but instead send them to the database as managed variables. |
any news on this issue? |
It seems that image_id = "ami-abc123"
availability_zone_names = [
"us-east-1a",
"us-west-1c",
] Fortunately, they contain only variable assignments and no conditional logic. It will make parsing easier. The only thing we need to confirm is the definition precedence:
As @bpmct noticed, CLI should not pack Battle plan:
|
Problem
Per the Terraform Documentation
Coder silently ignores the above files and prompts the user to specify values for template variables without a default specified.
Steps to reproduce:
main.tf
:terraform.tfvars
:Output of
terraform plan
:Output of
coder templates create
:Specifying the variable name (e.g.
--variable name=foo
) allows the template to be created, but this then clobbers the default value from*.tfvars
as shown by the output ofcoder state pull
:The file
terraform.tfvars
is however present in the uploaded template tar, as evidenced by the output ofcoder templates pull <template_name> --tar | tar -tvf -
:The text was updated successfully, but these errors were encountered: