Skip to content

Commit 817b277

Browse files
committed
fix gcp-linux
1 parent 94da748 commit 817b277

File tree

1 file changed

+1
-2
lines changed
  • examples/templates/gcp-linux

1 file changed

+1
-2
lines changed

examples/templates/gcp-linux/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ resource "coder_app" "code-server" {
129129

130130
resource "google_compute_instance" "dev" {
131131
zone = data.coder_parameter.zone.value
132-
count = data.coder_workspace.me.start_count
133132
name = "coder-${lower(data.coder_workspace.me.owner)}-${lower(data.coder_workspace.me.name)}-root"
134133
machine_type = "e2-medium"
135134
desired_status = (data.coder_workspace.me.owner == "default" || data.coder_workspace.me.start_count == 1 ? "RUNNING" : "TERMINATED")
@@ -162,7 +161,7 @@ resource "google_compute_instance" "dev" {
162161
echo "${local.linux_user} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/coder-user
163162
fi
164163
# Start the agent
165-
exec sudo -u "${local.linux_user}" sh -c '${try(coder_agent.mainp[0].init_script, "")}'
164+
exec sudo -u "${local.linux_user}" sh -c '${try(coder_agent.main[0].init_script, "")}'
166165
EOMETA
167166
}
168167
}

0 commit comments

Comments
 (0)