C
Coder.com4mo ago
ÙwÚ

How do you manage env var in a workspace?

I know that I can set env in main.tf https://registry.terraform.io/providers/kreuzwerker/docker/latest/docs/resources/container#env-8 and then have all the workspace using that env, is that how we suppose to do it? Is there a better way? (im usually drop all my env in .env and feed it to docker compose yml)
Solution:
you can use the coder_env resource, or use the coder_agent resource's env property
Jump to solution
4 Replies
Codercord
Codercord4mo ago
Codercord
Codercord4mo ago
What are you creating this issue for?
Phorcys
Phorcys3mo ago
hey @ÙwÚ apologies for the delay!
Solution
Phorcys
Phorcys3mo ago
you can use the coder_env resource, or use the coder_agent resource's env property

Did you find this page helpful?