-
Notifications
You must be signed in to change notification settings - Fork 881
Support TF_VAR_ default from environment #4529
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
you can fix them in |
@matifali can you clarify what you mean by "fix them". I was trying combinations and could not get it to not ask / throw an error. I'm sure it's a simple fix and I'm just not getting it. Thanks! |
We're reworking some of our parameter behavior in #4311 and plan on slowly deprecating the prompts for Terrraform variables. In the meantime, you can avoid user prompts by setting |
@bpmct is that in a particular version? If I do as you suggest it detects a default value as well as the environment variable...So far so good:
But when I start a workspace it's not honouring the environment variable. Note how it's just used
|
I think I misunderstood your question and I thought it is related to some terraform variables so I said fix/initialize them in |
Ah gotcha. I guess the default value is consumed instead of the @kylecarbs any idea if we could work around this before the new parameter stuff is in and variables are only consumable via Terraform? The only thing I can think of is using an |
Thanks @bpmct I will look at a workaround like that for the moment. By the way, the proposed UI inputs look great! |
@bpmct this worked a charm and is an acceptable workaround for us for now:
|
This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity. |
We're still doing this hack (if you'd call it that). |
I think it's fine to do this! Once we have the new parameter system, this won't be a thing anyways! |
Cool beans. I guess OK to close off then. |
We want TF_VAR_ variables that are assigned to the Coder instance to always apply to some variables in the template.
At the moment it seems that coder insists on asking and overriding these when uploading from CLI.
Any thoughts on this?
The text was updated successfully, but these errors were encountered: