infra-terraform-cost-estimator

Estimate monthly cloud costs and diffs for Terraform infrastructure changes.

14|1|Updated May 5, 2026
One-click install
npx skills add https://github.com/ivanshamaev/de-agent-skills --skill infra-terraform-cost-estimator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: infra-terraform-cost-estimator
Source: https://github.com/ivanshamaev/de-agent-skills/tree/main/group_skills/infra_dataops_group_skills/infra_terraform_cost_estimator
Command: npx skills add https://github.com/ivanshamaev/de-agent-skills --skill infra-terraform-cost-estimator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Terraform changes can silently drive cloud costs up after deployment; this skill helps you estimate monthly spend and cost deltas from infrastructure code during PR review.

Core Features & Use Cases

  • Infracost breakdown for Terraform: Generate a resource-by-resource monthly cost breakdown from Terraform code, including usage-based estimates (e.g., S3 storage and request volumes).
  • PR cost diffs and guardrails: Produce before/after cost delta outputs suitable for CI comments, and fail builds when monthly cost increase exceeds a configured threshold.
  • FinOps tagging and attribution: Apply and enforce tagging strategies (team/project/cost_center/environment) so costs can be attributed in reporting and policy checks.

Use case: When a data platform PR adds or modifies AWS resources (S3 buckets, RDS clusters, MSK, Athena, Lambda, etc.), you can estimate the monthly impact and block merges that exceed your budget.

Quick Start

Post a PR comment showing the monthly cost diff by running Infracost diff for the changed Terraform plan and comparing it to the base branch estimate.

Frequently Asked Questions about infra-terraform-cost-estimator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I estimate Terraform monthly cloud costs before merging infrastructure changes?

To estimate Terraform monthly cloud costs before merging, you can generate a resource-by-resource cost breakdown using Infracost, which calculates projected spend and usage-based estimates for resources like S3 and RDS directly from your code.

Can I block pull requests when a Terraform plan exceeds a cloud budgeting threshold?

Yes, you can block pull requests by generating a before/after cost diff with Infracost and configuring CI guardrails to fail builds when the total monthly cost increase exceeds your configured budget threshold.

How do I calculate PR cost diffs for AWS resources in a data platform?

You calculate PR cost diffs for AWS resources by running an Infracost breakdown on the changed Terraform plan and comparing it to the base branch estimate to highlight the monthly spend impact.

Does Terraform cost estimation support FinOps tagging strategies for cost attribution?

Yes, Terraform cost estimation supports FinOps tagging strategies by applying and enforcing tags like team, project, cost_center, and environment so costs can be properly attributed in reporting and policy checks.

What is the best way to include usage-based pricing like S3 storage in Terraform cost estimation?

The best way to include usage-based pricing in Terraform cost estimation is by providing optional usage-file inputs to Infracost, allowing it to calculate accurate estimates for variable costs like S3 storage and request volumes.