terraform-provider-coder
terraform-provider-coder copied to clipboard
Provide workspace suffix in the terraform provider
Problem Description
The SSH Host Prefix is being deprecated in favor of a deployment-wide suffix. To build IDE modules (e.g., for Zed) that use the Coder Desktop Connect 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_suffixdata.coder_deployment.me.version- and so on.
Related:
- coder/coder#16828