CloudSlash
Find AWS waste and generate Terraform state rm commands
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
We've all been there: You find an unused NAT Gateway costing $45/mo. You delete it in the AWS console to stop the billing immediately. But the next time you run terraform plan, it fails because of state drift. Now you have to manually run terraform state rm or import it back to fix the drift. It's tedious, so often we just leave the waste running. I built CloudSlash to automate the cleanup and the state surgery. It’s written in Go (using BubbleTea for the TUI) and solves two engineering problems: 1. Finding "hollow" resources (the graph). Most cost tools just check CloudWatch metrics (CPU < 5%). That creates too much noise. Instead, I build an in-memory graph of the infrastructure to find structural waste. Example: An "Active" ELB. It has healthy targets, so metrics look good. But if you traverse the graph (ELB -> Instance -> Subnet -> Route Table), you might see the Route Table has no path to an Internet Gateway. The ELB is functionally dead, even if AWS reports it as "healthy." 2. The state mapping. Deleting the resource in AWS is easy. The challenge is mapping a physical ID (e.g., nat-0a1b2c) back to its Terraform address (e.g., module.vpc.aws_nat_gateway.public[0]) so you can remove it from the state file programmatically. I wrote a parser that reads your local .tfstate, handles the complex JSON structure (including nested modules and for_each outputs), and generates a remediation script. It outputs a shell script (fix_terraform.sh) that runs the necessary terraform state rm commands for you. It never writes to your .tf files directly—it just hands you the script to review and run. The core logic, scanner, and TUI are open source (AGPLv3). I charge a one-time license for the feature that auto-generates the fix scripts for developers , but the forensic analysis/detection is free. Repo: https://github.com/DrSkyle/CloudSlash
HN · launched Jan 5, 2026 · 5 upvotes (top 90%) · 0 views
Niche: cloud cost optimization tools · 42 launches, 3 in the last 7 days · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
More like this: all 42 launches in cloud cost optimization tools →
Could you build this?
Yes A straightforward CLI/script tool that uses the AWS SDK to query unused resources (like idle NAT Gateways) and outputs formatted 'terraform state rm' strings.
Discussion
No comments on this launch.
Competitors
Other products that read as similar to this one : 170 launches clear the similarity bar, closest 8 shown.
Attention rank: #168 of 171 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 55 days after the earliest competitor.
- Hardened OpenClaw on AWS with Terraform · hn · 2026-03-13 · 10 upvotes · similarity 0.50
- CloudSynth · ph · 2026-09-14 · 1 upvotes · similarity 0.48
- Cloudslasher · ph · 2026-10-19 · 1 upvotes · similarity 0.48
- Cloudstic · hn · 2026-03-03 · 5 upvotes · similarity 0.45
- Cloudrift · hn · 2026-07-28 · 6 upvotes · similarity 0.44
- Stateboard · ph · 2026-09-09 · 1 upvotes · similarity 0.43
- SeaGit · ph · 2026-09-18 · 2 upvotes · similarity 0.42
- Terraform Automation by Buddy · ph · 2026-10-21 · 14 upvotes · similarity 0.42
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.