terraform-provider-coder icon indicating copy to clipboard operation
terraform-provider-coder copied to clipboard

Provide workspace suffix in the terraform provider

Open matifali opened this issue 9 months ago • 0 comments

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_suffix
    • data.coder_deployment.me.version
    • and so on.

Related:

  • coder/coder#16828

matifali avatar Mar 10 '25 19:03 matifali