Skip to content

Commit a368e8f

Browse files
mafredrikylecarbs
authored andcommitted
example: Re-enable Digital Ocean project assignment (#2196)
The issue tracked in #1750 was fixed by #2187, we can now re-enable the project resource.
1 parent faa7088 commit a368e8f

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

examples/templates/do-linux/main.tf

+10-11
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,13 @@ resource "digitalocean_droplet" "workspace" {
123123
ssh_keys = var.step2_do_admin_ssh_key > 0 ? [var.step2_do_admin_ssh_key] : []
124124
}
125125

126-
# Temporarily disabled because it breaks SSH. (https://github.com/coder/coder/issues/1750)
127-
# resource "digitalocean_project_resources" "project" {
128-
# project = var.step1_do_project_id
129-
# # Workaround for terraform plan when using count.
130-
# resources = length(digitalocean_droplet.workspace) > 0 ? [
131-
# digitalocean_volume.home_volume.urn,
132-
# digitalocean_droplet.workspace[0].urn
133-
# ] : [
134-
# digitalocean_volume.home_volume.urn
135-
# ]
136-
# }
126+
resource "digitalocean_project_resources" "project" {
127+
project = var.step1_do_project_id
128+
# Workaround for terraform plan when using count.
129+
resources = length(digitalocean_droplet.workspace) > 0 ? [
130+
digitalocean_volume.home_volume.urn,
131+
digitalocean_droplet.workspace[0].urn
132+
] : [
133+
digitalocean_volume.home_volume.urn
134+
]
135+
}

0 commit comments

Comments
 (0)