hashicorp/terraform-policy-agent pulls statistics
By hashicorp (105 listings) · Docker Hub
Agent that converts Sentinel and OPA policies into tested Terraform policies.
hashicorp/terraform-policy-agent has 2,306 recorded pulls on Docker Hub, an increase of 161% over the past 30 days, ranking #1114 of 1,291 tracked listings.
About hashicorp/terraform-policy-agent
The Terraform Policy Agent converts existing Sentinel and OPA (Rego) policies into Terraform policies. For each source policy, it generates the corresponding policy file and tests, executes the tests, and produces a report for review before the converted policies are enforced.
What it does
- Reads existing policies: Accepts Sentinel (.sentinel) and OPA (.rego) policies as individual files, lists of files, or entire policy repositories.
- Generates and validates Terraform policies: Creates a Terraform policy file (.policy.hcl) and corresponding tests (.policytest.hcl) for each source policy, validates them against Terraform provider schemas, and runs
tfpolicy validateandtfpolicy test. - Produces conversion reports: Generates a report for each policy and a consolidated summary covering all policies, including those that could not be converted successfully.
- Supports multiple model providers: Runs in a container and supports model access through GitHub Copilot, Amazon Bedrock, or LiteLLM.
Getting started
This image is launched using the run scripts provided in the GitHub repository. Refer to the repository README for setup and execution instructions.
Prerequisites
- Docker or Podman.
- Linux terraform and tfpolicy binaries (version 0.3.0 or later), obtained from https://releases.hashicorp.com and compatible with your machine's architecture.
- A running Terraform MCP server: https://hub.docker.com/r/hashicorp/terraform-mcp-server
- Access to a supported model provider through GitHub Copilot, Amazon Bedrock, or LiteLLM.
Review before use
The generated output is produced by a language model and may require further review. Carefully review each converted policy and run its tests before enforcing it. Begin by using the policies in advisory mode to assess their behavior before enabling enforcement.
Documentation and support
For setup instructions, the quick start guide, and additional documentation, refer to the repository README
Description from the Docker Hub listing.
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Pulls on a linear scale. Placement is projected from pulls, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar Docker Hub plugins
All 20 hashicorp/terraform-policy-agent alternativesData source
Cumulative pull counts and stars come from the public Docker Hub API. Pulls count image downloads (including automated CI pulls), not installs or users.
Listing: https://hub.docker.com/r/hashicorp/terraform-policy-agent. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.