⚠️ 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.
# 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
}
name (String) Workflow name to look up (matches sg_workflow.name).include_drafts (Boolean) When true (default), the Guild API includes draft versions when resolving this workflow.description (String) Human-readable intent.domain (String) Business domain (e.g. incident-response).escalation_policy_ref (String) Escalation policy reference.evidence_checklist_ref (String) Name of the evidence checklist attached to the entire workflow (workflow-scoped).example_queries (List of String) Example prompts used to match this workflow.id (String) Server-assigned identifier.optional_inputs (List of String) Optional inputs.remediation_pattern_refs (List of String) Linked remediation pattern names.required_inputs (List of String) Inputs required to run this workflow.runbook_refs (List of String) Linked runbook names.status (String) Draft lifecycle status.tags (List of String) Classification tags.version (Number) Workflow definition version number.