terraform-provider-stackgen

sg_policies (Data Source)

⚠️ Experimental — Lists Guild policies (sg_policy). Rego source is omitted from list results.

Example Usage

# When to use: List governance policies (IDs/names) when attaching policies from
# another stack or verifying a policy pack is present. Rego source is omitted.
data "sg_policies" "tool_call" {
  type = "tool_call"
}

output "policy_ids" {
  value = { for p in data.sg_policies.tool_call.policies : p.name => p.id }
}

Schema

Optional

Read-Only

Nested Schema for policies

Read-Only: