terraform-compliance/cli
a lightweight, security focused, BDD test framework against terraform. observed · 2026-08-28
Health v2 · maintenance only
81/100
- Activity 81
- Release rhythm 71
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 76.0
- age_days: 3440
- days_rel: 117
- days_push: 117
- n_releases_24m: 9
Adoption not part of the score
1461 stars · 160 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
terraform-compliance is a lightweight, security-focused BDD test framework for Terraform that enables negative testing of infrastructure-as-code. It validates Terraform plans against security and compliance policies before deployment and integrates easily into CI pipelines.
Use cases
- test terraform code for security compliance before deploy
- write BDD tests for infrastructure as code
- enforce policies like requiring S3 bucket encryption
- add terraform compliance checks to CI pipeline
- run negative tests against terraform plan output
- validate terraform code against custom security standards
- separate compliance test ownership from infrastructure code
When to choose
- you use Terraform and need free, open-source policy/compliance testing
- you want BDD-style (Given/When/Then) tests for infrastructure code
- you need pre-deploy validation in pipelines or git hooks
- you want provider-agnostic checks that work with any Terraform provider
When to avoid
- you need policy enforcement for non-Terraform IaC tools like CloudFormation or Pulumi
- you already use HashiCorp Sentinel or OPA with full policy tooling
- you need functional testing of deployed infrastructure rather than plan-level checks
Facets
cli-tool · maturity active
testing security developer-tools cli infrastructure-as-code security testing cloud-computing cli python cross-platform terraform bdd compliance infrastructure-as-code negative-testing policy-as-code ci-cd devops docker
5 sources
- readme: https://github.com/terraform-compliance/cli · fetched 2026-08-28 · 7a5d0776a171
- homepage: https://terraform-compliance.com · fetched 2026-08-29 · e67ea4026faa
- site_page: https://terraform-compliance.com/pages/installation · fetched 2026-08-29 · 4901ad85dc3e
- site_page: https://terraform-compliance.com/pages/installation/pip.html · fetched 2026-08-29 · cb9783451537
- site_page: https://terraform-compliance.com/pages/installation/docker.html · fetched 2026-08-29 · e4b31ef4a731
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| terraform-compliance/cli | main | 81 |
For agents
markdown · JSON · MCP: product_card(name="terraform-compliance/cli")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem