Terraform
HCP Terraform and Terraform Enterprise use Sentinel to enforce policy on Terraform configurations, states, and plans.
The Sentinel integration with Terraform runs within
HCP Terraform and Terraform Enterprise
after a terraform plan
and before a terraform apply
. The policies
have access to the created plan, the state at the time of the plan,
and the configuration at the time of the plan.
The Terraform integration with Sentinel is documented in depth in the HCP Terraform and Terraform Enterprise documentation. Please read that page for full documentation. This page will only show basic examples.
Examples
Example: All AWS instances must have a tag
Example: Only allow GCP instance sizes smaller than n1-standard-16