🗂️ Navigation

Terraform Compliance

A lightweight, security and compliance focused test framework for Terraform.

Visit Website →

Overview

terraform-compliance is a test framework that allows you to write policies for your Terraform code using a BDD (Behavior Driven Development) style. This makes the policies easy to read and understand for both technical and non-technical stakeholders. It runs against your Terraform plan file to check for violations before you apply your changes.

✨ Key Features

  • BDD-style policy authoring
  • Tests against Terraform plan files
  • Focus on security and compliance
  • Customizable policies

🎯 Key Differentiators

  • BDD-style syntax makes policies easy to read and write.
  • Focus specifically on Terraform compliance.
  • Lightweight and easy to integrate.

Unique Value: Terraform Compliance makes it easy for all stakeholders, including those who are not developers, to understand and contribute to infrastructure policies through its human-readable BDD format.

🎯 Use Cases (3)

Enforcing compliance and security policies on Terraform code Writing negative tests for infrastructure Creating a shared understanding of infrastructure rules between developers and security teams

✅ Best For

  • Ensuring all S3 buckets have encryption enabled
  • Preventing the creation of overly permissive security groups
  • Enforcing tagging policies on all resources

💡 Check With Vendor

Verify these considerations match your specific requirements:

  • Functional testing of infrastructure (Terratest is better suited for this)

🏆 Alternatives

Open Policy Agent (OPA) Sentinel

While other policy as code tools use more code-centric languages, Terraform Compliance's BDD approach improves collaboration and clarity.

💻 Platforms

Desktop

✅ Offline Mode Available

🔌 Integrations

Terraform CI/CD pipelines

💰 Pricing

Contact for pricing
Free Tier Available

Free tier: Open-source and free to use.

Visit Terraform Compliance Website →