Skip to content

feat(examples/templates): add aws vm devcontainer template #11248

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 10 commits into from
Dec 20, 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 6941594a2aea43c690eee4070e55fc6d70ca8256
18 changes: 9 additions & 9 deletions examples/templates/aws-devcontainer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ terraform {
}

module "aws_region" {
source = "https://registry.coder.com/modules/aws-region"
source = "https://registry.coder.com/modules/aws-region"
default = "us-east-1"
}

Expand Down Expand Up @@ -75,11 +75,11 @@ data "coder_parameter" "repo_url" {
}

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

metadata {
Expand All @@ -99,14 +99,14 @@ 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
}

locals {
linux_user = "coder"
user_data = <<-EOT
user_data = <<-EOT
Content-Type: multipart/mixed; boundary="//"
MIME-Version: 1.0

Expand Down