page_title | subcategory | description |
---|---|---|
coder_workspace Data Source - terraform-provider-coder |
Use this data source to get information for the active workspace build. |
Use this data source to get information for the active workspace build.
data "coder_workspace" "dev" {
}
resource "kubernetes_pod" "dev" {
count = data.coder_workspace.dev.transition == "start" ? 1 : 0
}
- id (String) The ID of this resource.
- 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".