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
}
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".