Works with the AI Agents you already use
Terraform Drift and Cost Review
by Saizul Amin
Find and resolve drift (changes made outside Terraform/OpenTofu, from the console, scripts or other tools) and review the cost impact of a plan before apply.
$10
Terraform Drift and Cost Review
Example session with this skill installed
Run the Terraform Drift and Cost Review skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the terraform drift
Here is what the Terraform Drift and Cost Review skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
Drift: 4 resource(s) changed outside Terraform
Cost signals: 15
HIGH aws_eip.extra[0]: creates 6 x aws_eip (aws_eip.extra[0], aws_eip.extra[1], aws_eip.extra[2], aws_eip.extra[3]...) [cost.new_billable]
HIGH aws_security_group.web: security-relevant change made outside Terraform: ingress[1].cidr_blocks, ingress[1].from_port, ingress[1].to_port - find out who changed it and why before the plan reverts it [drift.security]
HIGH aws_sqs_queue.jobs: deleted outside Terraform [drift.deleted]
MEDIUM aws_db_instance.main: changed outside Terraform: backup_retention_period [drift.changed]
MEDIUM aws_db_instance.main: allocated_storage increases: 100 -> 500 [cost.amount]
MEDIUM aws_db_instance.main: multi_az enabled: roughly doubles instance cost [cost.multi_az]
MEDIUM aws_eks_node_group.workers: scaling_config[0].desired_size increases: 3 -> 10 [cost.amount]
MEDIUM aws_eks_node_group.workers: scaling_config[0].max_size increases: 6 -> 20 [cost.amount]
MEDIUM aws_instance.app: instance_type increases: "t3.medium" -> "m5.2xlarge" [cost.size]
MEDIUM aws_nat_gateway.az[0]: creates 3 x aws_nat_gateway [cost.new_billable]
LOW aws_cloudwatch_log_group.app: retention_in_days = 0 keeps logs forever; storage cost grows without bound [cost.log_retention]
LOW aws_instance.app: tags changed outside Terraform: tags.Patched [drift.tags]
INFO aws_instance.batch: instance_type decreases: "c5.4xlarge" -> "c5.xlarge" [cost.size]
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Find and resolve drift (changes made outside Terraform/OpenTofu, from the console, scripts or other tools) and review the cost impact of a plan before apply. A deterministic script reads plan JSON (normal or -refresh-only) and reports drifted resources classified as deleted outside Terraform, security-relevant (IAM, security groups, firewalls, policies), tags-only or other, plus cost signals without needing prices - new billable resources (NAT gateways, load balancers, databases, clusters, instances, elastic IPs), instance/SKU/machine type changes up or down, storage, IOPS and throughput, scaling and node counts, multi-AZ, many new resources of one type and logs kept forever.
Who it's for
Use when the user asks "what changed outside Terraform?", "detect drift", "why does plan show changes I did not make", wants scheduled drift detection, asks how much a change will cost or whether a plan increases spend, or before applying scaling changes.
What's inside
- Tested, offline Python script(s): drift_cost_review.py (deterministic results, standard library only unless noted)
- Reference guides: cost.md, drift.md
- Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow
Why it's worth it
Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.
Works with every major AI agent
Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.
Requirements
- Python 3.8+ for the bundled scripts
- No API keys, no account, runs locally
Open source: saizul/terraform-iac-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
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 buying a skill.
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 1 day ago
- Software
Python 3.8+