# terraform cost preflight

> Flags high-cost Terraform anti-patterns and infrastructure trade-offs before you hit apply.

terraform cost preflight is a paid AI agent skill on Agensi by Elyas, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19 (one-time purchase)
- Creator: [Elyas](https://www.agensi.io/creators/elyas-shukri-elmi)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0
- Last updated: 2026-08-21
- Security: scan passed (2026-08-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/terraform-cost-preflight
- Tags: devops, terraform, aws, infrastructure-as-code, finops, cloud-cost

## 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.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the terraform cost preflight skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill differ from a standard 'terraform plan' output?

This skill acts as an automated architectural audit, scanning your Terraform plans for nine high-cost anti-patterns—like NAT gateway sprawl or orphaned volumes—that standard 'terraform plan' commands usually miss.

### Which infrastructure providers and AI agents are compatible with this skill?

The skill is designed for use with any LLM-powered agent or IDE extension that supports file analysis, and it is compatible with Terraform and OpenTofu across AWS, Azure, and GCP environments.

### Does this skill provide real-time pricing data for my cloud resources?

To ensure maximum accuracy, this skill focuses on architectural logic and delegates real-time dollar calculations to Infracost, preventing the pricing 'hallucinations' common in generic AI prompts.

### Can I use this skill to monitor my live cloud bill for unexpected spikes?

No, this is a pre-deployment 'preflight' tool; it analyzes code and plan files to catch costly mistakes before they are provisioned, rather than monitoring active cloud spending.

### What exactly is included in the purchase of the 'terraform cost preflight' skill?

The package includes the specialized skill logic for identifying the nine cost anti-patterns, documentation for integration, and a guide on connecting the skill to your existing Infracost workflow.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
