- Home
- Skills
- DevOps & Cloud
- terraform cost preflight
Works with the AI Agents you already use
terraform cost preflight
Flags high-cost Terraform anti-patterns and infrastructure trade-offs before you hit apply.
$19
terraform cost preflight
Example session with this skill installed
Review this terraform plan for cost anti-patterns: [paste of terraform plan output showing 3 NAT gateways and an io2 EBS volume]
- Read your context and instructions
- Compiled the terraform cost preflight
The plan provisions 3 NAT gateways (aws_nat_gateway.a/b/c). This trades high availability for increased base charges. Is AZ-level failover required for this workload? Also, EBS volume db_data uses io2; check if gp3 meets your IOPS needs to reduce costs. Use Infracost for precise dollar deltas.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Infrastructure as Code allows for rapid deployment, but it also makes it easy to accidentally provision expensive, idle, or over-sized resources. Standard Terraform plans show what will change, but they don't flag the architectural anti-patterns that lead to massive cloud bills.
What it does
- Scans Terraform plans and diffs for nine specific high-cost anti-patterns including NAT gateway sprawl and orphaned EBS volumes.
- Identifies over-provisioned RDS instances, oversized Lambda memory, and missing S3 lifecycle policies.
- Flags unused Elastic IPs, idle load balancers, and CloudWatch log groups lacking retention policies.
- Maps every finding to a specific resource address and defines the cost-vs-availability trade-off.
- Redirects authoritative pricing calculations to Infracost to ensure you never rely on stale, static data.
Frameworks & tools
Terraform, OpenTofu, AWS, GCP, Azure, Infracost.
Why this beats prompting it yourself
A generic prompt often yields vague advice or inaccurate pricing hallucinations. This skill uses a strict semantic layer to catch specific, hard-to-spot patterns while maintaining a clear boundary between architectural logic and real-time pricing data.
Use cases
- Reviewing a Terraform plan for NAT gateway sprawl across multiple availability zones.
- Audit of EBS volumes and snapshots to find unattached or orphaned storage.
- Checking new RDS or Lambda resource blocks for over-provisioning before deployment.
- Ensuring all new CloudWatch log groups include a defined retention period.
Known limitations
Does not calculate authoritative dollar figures. Limited to nine specific anti-patterns; it is not an exhaustive FinOps suite or a real-time monitoring tool.
Not a cost calculator. Only scans for nine specific resource anti-patterns. Requires a Terraform plan or diff to function.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 months ago
Permissions
No special permissions declared or detected