Help us improve
Share bugs, ideas, or general feedback.
From infra-review
Use when reviewing Terraform components for AWS cost optimization, right-sizing, or identifying unnecessary expensive resources like NAT gateways or over-provisioned subnets
npx claudepluginhub infraspecdev/tesseract --plugin infra-reviewHow this skill is triggered — by the user, by Claude, or both
Slash command
/infra-review:terraform-cost-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
Audits Terraform codebases for security, compliance, cost optimization, code quality, and architecture issues in AWS resources. Outputs Markdown reports with severity levels, remediations, and HCL fixes.
Audits AWS IaC code for Well-Architected Cost Optimization Pillar, checking oversized instances, S3 storage classes, scaling schedules, unused resources, data transfer, and cost alerts.
Audits cloud infrastructure costs from IaC like Terraform/Pulumi and configs, runs Infracost/AWS Cost Explorer/GCP Billing scanners, produces prioritized optimization plan with changes and savings estimates.
Share bugs, ideas, or general feedback.
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.
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.
For each cost-driving resource, check:
enable_* variable to disable in dev?For each variable that affects cost, recommend values for dev, staging, and production. See pricing-reference.md for common variable patterns.
| 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 |
pricing-reference.md -- AWS resource pricing, inventory categories, and environment variable patternsreport-template.md -- Full output format template for cost review reports