Closed
Description
Steps to Reproduce
- Uncomment the "project resource" in
examples/do-droplet-linux
(feat: Add examples/templates/do-linux for Digital Ocean Droplets #1749) - Run
coder template create -d examples/do-droplet-linux
- Run
coder create -t do-droplet-linux my-dev
- Observe problems (see screenshot)
Ucommented the resource should look like:
resource "digitalocean_project_resources" "project" {
project = var.step2_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
]
}
Expected
Only one resource should be listed as the workspace.
Actual
Multiple resources are listed and detected as workspaces, leading to unexpected behavior.