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.

Latest commit

c414cc5 · Mar 25, 2022

History

History
37 lines (25 loc) · 851 Bytes

File metadata and controls

37 lines (25 loc) · 851 Bytes
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

Optional

  • id (String) The ID of this resource.

Read-Only

  • name (String) Name of the workspace.
  • owner (String) Username of the workspace owner.
  • transition (String) Either "start" or "stop". Use this to start/stop resources with "count".