coder / coder/coder

Expose resource names for all Terraform resources in the API and UI

Open
#19,867 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
14.5k
Forks
1.5k
Avg merge
1d 20h
Merged PRs (30d)
601

Description

With the advent of prebuilds, often our persistent resource names are stuff like `coder-prebuilds-prebuild-xyz`. For example in dogfood, all prebuilt workspace volumes will be permanently named `coder-prebuilds-prebuild-xyz` and the labels will permanently refer to the prebuilds user and the prebuilds workspace name.

This makes it difficult to find resources for a specific workspace when you need to actually go digging on the provider side for debugging or cleanup. I propose we expose all resource names (even ones not tracked as `resources` in Coder) as read from the terraform graph on the workspaces page somewhere.

I should be able to see `docker_volume: coder-prebuilds-prebuild-xyz` on every workspace, and easily fetch that from the API without having to download the tfstate file and parse it out myself.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.