Skip to content

feat(examples/templates): add GCP VM devcontainer template #11246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Dec 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make fmt
  • Loading branch information
matifali committed Dec 17, 2023
commit 2352c348f0d8208f127aae30725fae8bc12c6b2c
18 changes: 9 additions & 9 deletions examples/templates/gcp-vm-devcontainer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ data "coder_parameter" "repo_url" {
}

resource "coder_agent" "dev" {
count = data.coder_workspace.me.start_count
arch = "amd64"
auth = "token"
os = "linux"
dir = "/worskpaces"
connection_timeout = 0
count = data.coder_workspace.me.start_count
arch = "amd64"
auth = "token"
os = "linux"
dir = "/worskpaces"
connection_timeout = 0

metadata {
key = "cpu"
display_name = "CPU Usage"
Expand All @@ -111,8 +111,8 @@ resource "coder_agent" "dev" {
}

module "code-server" {
count = data.coder_workspace.me.start_count
source = "https://registry.coder.com/modules/code-server"
count = data.coder_workspace.me.start_count
source = "https://registry.coder.com/modules/code-server"
agent_id = coder_agent.dev[0].id
}

Expand Down