coder / coder/terraform-provider-coder

Provide workspace suffix in the terraform provider

Open
#360 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
60
Forks
27
Avg merge
1d 21h
Merged PRs (30d)
2

Description

### Problem Description
The SSH Host Prefix is being deprecated in favor of a deployment-wide suffix. To build IDE modules (e.g., for [Zed](https://github.com/coder/coder/blob/8c0350e20cbf84168592a6715079bdbc22aa4e41/dogfood/contents/zed/main.tf#L27C1-L28C1)) that use the [Coder Desktop Connect](https://coder.com/docs/user-guides/desktop) networking, we need access to this suffix within Terraform. However, it's unclear where this value should be exposed in the Terraform provider.

### Desired Solution
Expose the SSH host suffix as a Terraform data source. Possible options include:
- Introducing `data.coder_workspace.me.full_name`, which includes the suffix.
- Creating a new data source (`coder_deployment`) that includes the suffix and other deployment-wide information e.g, version.
- `data.coder_deployment.me.ssh_suffix`
- `data.coder_deployment.me.version`
- and so on.

**Related:**
- coder/coder#16828

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.