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
use zone in provider only
  • Loading branch information
matifali authored Dec 17, 2023
commit a49df653202b588087126159f73c614d2cdae0c6
2 changes: 0 additions & 2 deletions examples/templates/gcp-vm-devcontainer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ data "coder_workspace" "me" {
resource "google_compute_disk" "root" {
name = "coder-${data.coder_workspace.me.id}-root"
type = "pd-ssd"
zone = data.coder_parameter.zone.value
image = "debian-cloud/debian-12"
lifecycle {
ignore_changes = [name, image]
Expand Down Expand Up @@ -137,7 +136,6 @@ resource "coder_app" "code-server" {
}

resource "google_compute_instance" "vm" {
zone = data.coder_parameter.zone.value
name = "coder-${lower(data.coder_workspace.me.owner)}-${lower(data.coder_workspace.me.name)}-root"
machine_type = "e2-medium"
# data.coder_workspace.me.owner == "default" is a workaround to suppress error in the terraform plan phase while creating a new workspace.
Expand Down