How can a workspace's environment variable values be modified?
I am trying to setup the Coder Tasks w/ Docker template which has the following variables in the main.tf template file:
I can't find documentation on how to modify the values of the "anthropic_api_key" and/or "CODER_MCP_CLAUDE_API_KEY" environment variable. Is there a way to do this?
I've tried to use the
coder update --parameter
command with no luck:
The key is unchanged when I run env | grep "CODER_MCP_CLAUDE_API_KEY"
within the workspace terminal.
Thank you in advance for any help!GitHub
registry/registry/coder-labs/templates/tasks-docker/README.md at ma...
Publish Coder modules and templates for other developers to use. - coder/registry
Solution:Jump to solution
variables are shared by each workspace created from the template so you need to modify it in the Template settings
6 Replies
<#1394435722068623462>
Category
Help needed
Product
Coder (v2)
Platform
N/A
Logs
Please post any relevant logs/error messages.
What operating system are you running Coder (v2) on?
Solution
variables are shared by each workspace created from the template so you need to modify it in the Template settings
You can do so from the UI and also from CLi by pushing a new template version and changing the value if the variable with
coder templates push --var
Thank you!
@Phorcys closed the thread.