// the find
antonbabenko/terraform-cost-estimation
Anonymized, secure, and free Terraform cost estimation based on Terraform plan (0.12+) or Terraform state (any version)
A jq script that strips sensitive data from Terraform state/plan files and sends anonymized cost keys to a hosted estimation API at cost.modules.tf. Aimed at teams who want pre-apply cost visibility in CI without shipping secrets to a third-party service. The privacy model is the whole point — you never send real resource names or values, just normalized keys like 'ec2#eu-west-1#t3.nano#shared#linux'.
The anonymization approach is genuinely clever: the jq transform reduces a full state file to opaque pricing keys before anything leaves your network. Works against any Terraform state version, not just 0.12+. Integration into CI is a one-liner — no agent to install, no SDK to import. Sample OPA policy shows how to gate pipelines on cost thresholds, which is the actually useful workflow.
AWS-only and coverage is thin — five resource families total, no RDS, no S3, no Lambda, no EKS. Last commit is June 2023; the backing API is a free hobby service run by one person with no SLA, so 'free' also means 'potentially gone tomorrow'. No support for Terraform workspaces or multi-region plans in a single call. If cost.modules.tf goes dark, this repo becomes a jq script with no destination — there's no self-hosted option documented.