Back to home

PR-Time Cost Prediction

New

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

+$1.5K

💸 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 plan JSON
Paste the output of terraform show -json plan.tfplan
Resource-by-resource
Biggest impact first
aws_elasticache_cluster.redis
create

CREATE · 3× cache.m5.xlarge · $0.2960/hr each

+$648.24
aws_db_instance.analytics
update

UPDATE · was db.t3.medium · $0.0680/hr + 100GB storage ($10.00/mo) → now db.m5.2xlarge · $0.7680/hr + 500GB storage ($50.00/mo)

+$551.00
aws_instance.api_worker
create

CREATE · c5.4xlarge · $0.6800/hr · 730h

+$496.40
aws_instance.legacy_batch_worker
delete

DELETE · m5.2xlarge · $0.3840/hr · 730h

-$280.32
aws_nat_gateway.prod
create

CREATE · NAT Gateway · $0.045/hr + ~100GB data

+$37.35
Add it to your GitHub Actions in 60 seconds
No app to install, no secrets to share. Your own CI calls our public API and posts the comment using the 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.

PR Cost Predictor FAQ

Still have questions? Email hello@cartieai.com — replies within 4 business hours.

See full FAQ

We value your privacy. Cookies help us improve your experience. Learn more

  1. Sample plan loaded
    A typical infra PR — ready for you to explore.

Install CARTIE AI

Add to your home screen for quick access and offline support