Skip to content

Commit fafb47c

Browse files
johnstcnmafredrimatifali
authored
Apply suggestions from code review
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com> Co-authored-by: Muhammad Atif Ali <atif@coder.com>
1 parent 85c86b8 commit fafb47c

File tree

1 file changed

+5
-5
lines changed
  • examples/templates/gcp-devcontainer

1 file changed

+5
-5
lines changed

examples/templates/gcp-devcontainer/main.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ provider "google" {
2222

2323
data "google_compute_default_service_account" "default" {}
2424

25-
data "coder_workspace" "me" {
26-
}
25+
data "coder_workspace" "me" {}
2726
data "coder_workspace_owner" "me" {}
2827

2928
variable "project_id" {
@@ -120,7 +119,7 @@ data "coder_parameter" "devcontainer_builder" {
120119
description = <<-EOF
121120
Image that will build the devcontainer.
122121
We highly recommend using a specific release as the `:latest` tag will change.
123-
Find the latest version of Envbuilder here: https://github.com/coder/envbuilder/pkgs/container/envbuilder
122+
Find the latest version of Envbuilder here: https://ghcr.io/coder/envbuilder
124123
EOF
125124
display_name = "Devcontainer Builder"
126125
mutable = true
@@ -222,7 +221,7 @@ locals {
222221
META
223222
}
224223

225-
# Create a persistent to store the workspace data.
224+
# Create a persistent disk to store the workspace data.
226225
resource "google_compute_disk" "root" {
227226
name = "coder-${data.coder_workspace.me.id}-root"
228227
type = "pd-ssd"
@@ -316,7 +315,8 @@ resource "coder_agent" "dev" {
316315
# Install code-server via Terraform module.
317316
module "code-server" {
318317
count = data.coder_workspace.me.start_count
319-
source = "https://registry.coder.com/modules/code-server"
318+
source = "registry.coder.com/modules/code-server/coder"
319+
version = "1.0.17"
320320
agent_id = coder_agent.dev[0].id
321321
}
322322

0 commit comments

Comments
 (0)