diff --git a/examples/templates/do-linux/main.tf b/examples/templates/do-linux/main.tf index 7710138bd5e3b..70fcdc364f6c8 100644 --- a/examples/templates/do-linux/main.tf +++ b/examples/templates/do-linux/main.tf @@ -123,14 +123,13 @@ resource "digitalocean_droplet" "workspace" { ssh_keys = var.step2_do_admin_ssh_key > 0 ? [var.step2_do_admin_ssh_key] : [] } -# Temporarily disabled because it breaks SSH. (https://github.com/coder/coder/issues/1750) -# resource "digitalocean_project_resources" "project" { -# project = var.step1_do_project_id -# # Workaround for terraform plan when using count. -# resources = length(digitalocean_droplet.workspace) > 0 ? [ -# digitalocean_volume.home_volume.urn, -# digitalocean_droplet.workspace[0].urn -# ] : [ -# digitalocean_volume.home_volume.urn -# ] -# } +resource "digitalocean_project_resources" "project" { + project = var.step1_do_project_id + # Workaround for terraform plan when using count. + resources = length(digitalocean_droplet.workspace) > 0 ? [ + digitalocean_volume.home_volume.urn, + digitalocean_droplet.workspace[0].urn + ] : [ + digitalocean_volume.home_volume.urn + ] +}
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: