terraform-provider-stackgen

sg_app_workflows (Data Source)

⚠️ Experimental — Lists workflows assigned to an installed Guild app (both provisioned and operator-attached). Scoped to the provider’s workspace_id when set. For org-wide workflow search use sg_workflows.

Example Usage

# The app must already be installed in the provider workspace_id.
# Guild returns both manifest-provisioned and operator-attached workflows;
# purpose is null for assignments without an app-declared purpose.
# WARNING: Terraform state may retain app/workflow metadata; protect state access.
data "sg_app_workflows" "sre" {
  app_name = "sre"
}

output "sre_workflow_names" {
  value = [for workflow in data.sg_app_workflows.sre.workflows : workflow.name]
}

Schema

Required

Read-Only

Nested Schema for workflows

Read-Only: