» Example Policies

Hands-on: Try the Enforce Policy with Sentinel collection on HashiCorp Learn.

This page lists some example policies. These examples are not exhaustive, but they demonstrate some of the most common use cases of policies with Terraform Cloud. For more examples, see the Governance section of the hashicorp/terraform-guides repository.

» Amazon Web Services

» Microsoft Azure

» Google Cloud Platform

» VMware

» Cloud-Agnostic

Note that the last policy illustrates how to use Sentinel's http import to send an HTTP request to an API endpoint (Terraform Cloud's own API in this case).