terraform-provider-stackgen

sg_workflow (Data Source)

⚠️ Experimental — Reads an existing Guild workflow by name. Returns summary metadata (domain, version, status, tags, linked refs). For full stage definitions use the sg_workflow resource state or the Guild UI. Respects provider workspace_id for workspace scoping.

Example Usage

# When to use: Look up a workflow by name to read status, runbook refs, or
# version without managing sg_workflow in this stack.
data "sg_workflow" "kafka_lag_rca" {
  name = "kafka-lag-rca"
}

output "workflow_status" {
  value = data.sg_workflow.kafka_lag_rca.status
}

Schema

Required

Optional

Read-Only