-
Notifications
You must be signed in to change notification settings - Fork 888
rich parameters: user environment variable input #5981
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
Is it related to #5980? I have a feeling that it overlaps a bit. |
Yeah, I think it's related but wanted a separate issue for workspace-scoped env vars. (I was assuming this would be a parameter type like |
Ok, I see :) I assumed that every variable would have a type and format too, even if they are strict Terraform variables, which could be a string type without format restrictions. |
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. |
@mtojek Using the terraform variable, we could easily set secrets at template push time. I understand this is now deprecated, and that there is no alternative. Is this similar to this ticket or is there another tracking one? |
Incorrect. You can still use Terraform variables, but with feature_use_managed_variables provider flag. If you set |
@mtojek I have tried and tried, the coder cli does not take into account the |
You can try to use
then:
|
@mtojek I saw that coder 0.24.x was released with all legacy parameters removed. Do you have an idea when loading parameter through env var will be back on the roadmap? |
I can confirm that it is not on the roadmap now, and we don't plan to work on it in the nearest future. I understand that using a config file is unfortunate for your case. EDIT: If you want to prepare a community contribution, we will gladly review it! |
@mtojek I have given a try, and it seems there is still different than previous way to load env vars. The values.yml I am using is following your guidance. Yet during the template push, I get: Looks like the variables may not be present during that step of the build? Also reading the doc again, it seems that template user may see those values (or afaik). Is that correct? |
Yes, unless you mark them as sensitive. BTW It would be easier to guide you if you share your template and the command you're calling. |
I'm sure we can probably think of a better name but would be nice to have some type of parameter that lets users enter the environment variables for their workspace for example.
Open questions:
The text was updated successfully, but these errors were encountered: