kestra_policy Data Source: Read Governance Policies
For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append.mdto anykestra.io/docs/*URL for plain Markdown.
Terraform Data Source: kestra_policy
Reads a Kestra governance Policy (EE) at the INSTANCE, TENANT or NAMESPACE scope.
Example usage
data "kestra_policy" "tenant" { scope = "TENANT" policy_id = "deny-shell-commands"}
data "kestra_policy" "namespace" { scope = "NAMESPACE" namespace = "company.team" policy_id = "require-owner-label"}Schema
Required
policy_id(String) The policy id.scope(String) The policy scope:INSTANCE,TENANTorNAMESPACE.
Optional
namespace(String) The namespace the policy is attached to. Required for theNAMESPACEscope.tenant_id(String) The tenant id, forTENANTandNAMESPACEscopes. Defaults to the provider tenant when omitted. Must not be set for theINSTANCEscope.
Read-Only
content(String) The policy YAML source.
Was this page helpful?