Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39 lines (29 loc) · 1.2 KB

File metadata and controls

39 lines (29 loc) · 1.2 KB
page_title subcategory description
coder_workspace Data Source - terraform-provider-coder
Use this data source to get information for the active workspace build.

coder_workspace (Data Source)

Use this data source to get information for the active workspace build.

Example Usage

data "coder_workspace" "dev" {
}

resource "kubernetes_pod" "dev" {
  count = data.coder_workspace.dev.transition == "start" ? 1 : 0
}

Schema

Read-Only

  • access_port (Number) The access port of the Coder deployment provisioning this workspace.
  • access_url (String) The access URL of the Coder deployment provisioning this workspace.
  • id (String) UUID of the workspace.
  • name (String) Name of the workspace.
  • owner (String) Username of the workspace owner.
  • owner_email (String) Email address of the workspace owner.
  • owner_id (String) UUID of the workspace owner.
  • start_count (Number) A computed count based on "transition" state. If "start", count will equal 1.
  • transition (String) Either "start" or "stop". Use this to start/stop resources with "count".