Skip to content

Multiple terraform resources are detected as multiple workspaces, resulting in inability to SSH and unrecognized name #1750

@mafredri

Description

@mafredri

Steps to Reproduce

  1. Uncomment the "project resource" in examples/do-droplet-linux (feat: Add examples/templates/do-linux for Digital Ocean Droplets #1749)
  2. Run coder template create -d examples/do-droplet-linux
  3. Run coder create -t do-droplet-linux my-dev
  4. 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.

Screenshot

Screen Shot 2022-05-25 at 18 11 00

Metadata

Metadata

Assignees

Labels

apiArea: HTTP API

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    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:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy