We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ea0923 commit cc9a484Copy full SHA for cc9a484
dogfood/main.tf
@@ -11,6 +11,11 @@ terraform {
11
}
12
13
14
+variable "datocms_api_token" {
15
+ type = string
16
+ description = "An API token for provisioning API tokens for workspaces"
17
+}
18
+
19
# Admin parameters
20
21
provider "docker" {
@@ -118,7 +123,10 @@ resource "docker_container" "workspace" {
118
123
# CPU limits are unnecessary since Docker will load balance automatically
119
124
memory = 32768
120
125
runtime = "sysbox-runc"
121
- env = ["CODER_AGENT_TOKEN=${coder_agent.dev.token}"]
126
+ env = [
127
+ "CODER_AGENT_TOKEN=${coder_agent.dev.token}",
128
+ "DATOCMS_API_TOKEN=${var.datocms_api_token}",
129
+ ]
122
130
host {
131
host = "host.docker.internal"
132
ip = "host-gateway"
0 commit comments