A free, public tool from CARTIEAI. See the exact monthly $ impact of your next Terraform PR before it merges. Paste the output of terraform show -json plan.tfplan below — no account, no API keys, nothing to install. To make every PR comment automatic, use the 10-line GitHub Actions snippet further down the page.
Monthly cost delta
💸 This PR adds **$1,452.67/mo** in cloud cost ($17,432.04/year)
Annualised: +$17.4K · 5 resources analysed · 5 priced
Before
$339.96 /mo
After
$1792.63 /mo
terraform show -json plan.tfplanaws_elasticache_cluster.redisCREATE · 3× cache.m5.xlarge · $0.2960/hr each
aws_db_instance.analyticsUPDATE · was db.t3.medium · $0.0680/hr + 100GB storage ($10.00/mo) → now db.m5.2xlarge · $0.7680/hr + 500GB storage ($50.00/mo)
aws_instance.api_workerCREATE · c5.4xlarge · $0.6800/hr · 730h
aws_instance.legacy_batch_workerDELETE · m5.2xlarge · $0.3840/hr · 730h
aws_nat_gateway.prodCREATE · NAT Gateway · $0.045/hr + ~100GB data
GITHUB_TOKEN GitHub already gives every workflow.# .github/workflows/cartie-pr-cost.yml
name: CARTIE AI · PR Cost
on: [pull_request]
jobs:
cost:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3
- run: terraform init && terraform plan -out=plan.tfplan
- run: terraform show -json plan.tfplan > plan.json
- name: Get cost delta from CARTIEAI
run: |
curl -sS -X POST https://cartieai.com/api/pr-cost-predictor/analyze \
-H "Content-Type: application/json" --data @plan.json > result.json
- uses: actions/github-script@v7
with:
script: |
const { summary } = require('./result.json');
github.rest.issues.createComment({
...context.repo,
issue_number: context.issue.number,
body: summary,
});
1Save the file
Drop it at .github/workflows/cartie-pr-cost.yml in your repo.
2Open a PR
Your CI runs terraform plan, sends the JSON to our public API, gets a friendly summary.
3Get a comment
Posted by github-actions[bot] — under your control, in your repo, with your token.
Why we love this approach: you keep total control. We never touch your code, your tokens, or your GitHub org. No third-party app to security-review. If you ever want to stop, delete the file — that's it.
Want us to prioritise your team's resource types?
We're co-building this with our first 10 design-partner teams. If you tell us what your Terraform PRs actually look like, we'll add coverage for the resources you use and ship a tailored summary format. No fee, no commitment — just a real conversation.
Still have questions? Email hello@cartieai.com — replies within 4 business hours.
See full FAQ