terraform-cost-review

terraform-cost-review is a skill for Claude Code from infraspecdev/tesseract. It costs 32 tokens per session (652 once invoked), scanned A, original, MIT.

A review guide for Terraform configurations that create AWS resources. Terraform is a tool for describing cloud infrastructure in code, and AWS is Amazon's cloud platform.

In plain words
What is it for?
Use it before deploying or revising Terraform components, during cost reviews, or when planning different settings for development and production environments. It checks resources such as networking, compute, storage, databases, monitoring, and security.
Why use it?
It helps find infrastructure choices that cost more than necessary, such as resources that cannot be reduced or disabled outside production. It is also useful when investigating an unexpectedly high AWS bill.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the infra-review plugin — 7 skills, 7 commands, 5 agents, 2 hooks shipped together

Good fit Use it before deploying or revising Terraform components, during cost reviews, or when planning different settings for development and production environments. It checks resources such as networking, compute, storage, databases, monitoring, and security.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/infraspecdev/tesseract/terraform-cost-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add infraspecdev/tesseract --skill terraform-cost-review
Clone the repo
git clone --depth 1 https://github.com/infraspecdev/tesseract

Made for: Claude Code.

Or install infra-review, the plugin that ships this one along with the rest of its 7 skills, 7 commands, 5 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for terraform-cost-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/infraspecdev/tesseract/terraform-cost-review/github.svg)](https://agentmods.dev/skills/infraspecdev/tesseract/terraform-cost-review)
Your own site
<a href="https://agentmods.dev/skills/infraspecdev/tesseract/terraform-cost-review"><img src="https://agentmods.dev/badge/skills/infraspecdev/tesseract/terraform-cost-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for terraform-cost-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/infraspecdev/tesseract/terraform-cost-review"><img src="https://agentmods.dev/badge/skills/infraspecdev/tesseract/terraform-cost-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 652 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00652
Opus 5 $0.00016 $0.00326
Sonnet 5 $0.00006 $0.00130
Haiku 4.5 $0.00003 $0.00065

Measured 10d ago against content hash 68b46c504bce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

terraform-cost-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

infra-review/skills/terraform-cost-review/SKILL.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Terraform Cost Review

Overview

Cost analysis framework for Terraform AWS components. Every resource must be toggleable or right-sizable per environment so non-production environments never pay production prices.

When to Use

  • Reviewing a new Terraform component before deployment
  • Evaluating existing components for cost optimization
  • Planning environment-specific variable overrides in Atmos stacks
  • After receiving a surprisingly high AWS bill
  • During FinOps review of infrastructure components

When NOT to Use

  • Pure application code changes with no infrastructure impact
  • Reviewing Atmos stack YAML without underlying component changes
  • Terraform modules that don't create AWS resources (e.g., label/naming modules)
  • When the user explicitly asks for a security or compliance review only

Cost Analysis Process

Step 1: Resource Inventory

Read all .tf files and inventory every resource that incurs AWS charges. Categorize by networking, compute, storage, database, monitoring, and security. See pricing-reference.md for resource categories and approximate costs.

Step 2: Configuration Analysis

For each cost-driving resource, check:

  • Toggleability -- Is there an enable_* variable to disable in dev?
  • Sizing -- Are instance types, CIDR sizes, counts configurable via variables?
  • Scaling -- Can counts be reduced (AZs, replicas, NAT gateways)?
  • Retention -- Are log retention periods configurable and bounded?
  • Tier selection -- Are storage classes, instance families configurable?
  • Data transfer -- Are there unnecessary cross-AZ or cross-region transfers?

Step 3: Environment-Specific Recommendations

For each variable that affects cost, recommend values for dev, staging, and production. See pricing-reference.md for common variable patterns.

Common Cost Traps

Trap Typical Monthly Cost Fix
3 NAT gateways in dev ~$100 + data transfer Add enable_nat_gateway and nat_gateway_count variables
Flow logs to CloudWatch (high traffic) $50-500 at scale Set bounded retention_in_days, consider S3 destination
/16 subnets from IPAM Wastes IP space Use /20 or /24, make configurable
VPC interface endpoints everywhere $7.50/endpoint/AZ/month Toggle with enable_vpc_endpoints, use free gateway endpoints for S3/DynamoDB
Infinite CloudWatch log retention Grows unbounded Always set explicit retention_in_days
EIPs without NAT gateways $3.60/month each unused Conditional creation tied to NAT gateway enable flag
Cross-AZ data transfer $0.01/GB Co-locate when possible, or accept as HA cost

Read the full file on GitHub · 64 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 64 lines · 32 tokens per session scan A 68b46c504bce

Subscribe to this mod's changes

terraform-cost-review is a skill published in the GitHub repository infraspecdev/tesseract (5 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 652 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

aws-cost-cleanup

Automated cleanup of unused AWS resources to reduce costs.

sickn33/agentic-awesome-skills · 15 tokens

aws-cost-operations

AWS cost optimization, monitoring, and operational excellence expert. Use when analyzing AWS bills, estimating costs, setting up CloudWatch alarms, querying logs, auditing CloudTrail activity, or assessing security posture.

sickn33/agentic-awesome-skills · 44 tokens

azure-compute

Azure VM/VMSS router. WHEN: create / provision / deploy / spin-up VM, recommend VM size, compare VM pricing, VMSS, scale set, autoscale, burstable, lightweight server, website, backend, GPU, machine learning, HPC simulation, dev/test, workload, family, load balancer, Flexible orchestration, Uniform orchestration, cost…

microsoft/skills · 154 tokens

azure-cost

Azure cost management: query costs, forecast spending, optimize to reduce waste. WHEN: "Azure costs", "Azure bill", "cost breakdown", "how much am I spending", "forecast spending", "optimize costs", "reduce spending", "orphaned resources", "rightsize VMs", "cost spike", "reduce storage costs", "AKS cost". DO NOT USE…

microsoft/skills · 94 tokens

cost-optimization

Audit and reduce infrastructure and tooling costs without sacrificing reliability or velocity. Use this skill when reviewing monthly cloud or SaaS spend, finding unused resources, rightsizing infrastructure, negotiating vendor contracts, deciding what to consolidate, or planning for budget cuts. Triggers on cost…

rampstackco/claude-skills · 101 tokens

compute-resell

Autonomous compute-reselling agent on Surplus Intelligence - resells free or low-cost provider compute across Bankr, AWS Bedrock, and Google Vertex (GCP) as one skill. Reads the live market + your cost + your usage, auto-lists your models per enabled provider, and reactively prices each offer to win routing within a…

aeonfun/aeon · 83 tokens