For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append .md to any kestra.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, TENANT or NAMESPACE.

Optional

  • namespace (String) The namespace the policy is attached to. Required for the NAMESPACE scope.
  • tenant_id (String) The tenant id, for TENANT and NAMESPACE scopes. Defaults to the provider tenant when omitted. Must not be set for the INSTANCE scope.

Read-Only

  • content (String) The policy YAML source.

Was this page helpful?