Policy enforcement in workspaces
This section provides an overview of how HCP Terraform enforces policies for configurations in workspace.
For general information about policies, policy sets, and policy frameworks, refer to the Policy enforcement overview.
Note: HCP Terraform Free edition includes one policy set of up to five policies. In HCP Terraform Standard and Premium editions, you can connect a policy set to a version control repository or create policy set versions with the API. Refer to HCP Terraform pricing for details.
Workspace-specific features
The following features are specific to viewing and managing policy enforcement in workspaces:
- View and override policy enforcement results in the workspace UI. Refer to View policy results for more information.
- Access detailed JSON output for Sentinel policies. Refer to View Sentinel JSON results for more information.
General policy documentation
For information about creating and managing policies that apply to both workspaces and Stacks, refer to the following topics:
- Define policies: Write custom policies using Terraform policy, Sentinel, or OPA
- Create and manage policy sets: Organize policies and configure their scope
- Test policies: Test your policies before deploying them
- Pre-written policy library: Use HashiCorp-maintained policies
- Sentinel import reference: Reference for Sentinel imports
Policy enforcement for Stacks
For information about using policies with Stacks, refer to Policy enforcement for Stacks.