Skip to content

Commit b4ff7ce

Browse files
committed
coder_env code example
1 parent 60401e6 commit b4ff7ce

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
data "coder_workspace" "me" {}
2+
3+
resource "coder_agent" "dev" {
4+
os = "linux"
5+
arch = "amd64"
6+
dir = "/workspace"
7+
}
8+
9+
resource "coder_env" "welcome_message" {
10+
agent_id = coder_agent.dev.id
11+
name = "WELCOME_MESSAGE"
12+
value = "Welcome to your Coder workspace!"
13+
}
14+
15+
resource "coder_env" "internal_api_url" {
16+
agent_id = coder_agent.dev.id
17+
name = "INTERNAL_API_URL"
18+
value = "https://api.internal.company.com/v1"
19+
}

0 commit comments

Comments
 (0)