CloudSlash
Find AWS waste and generate Terraform state rm commands
Details
- External ID
- 46494848
- Source
- HN
- Company
- —
- Product
- —
- Website domain
- —
- Launched
- Jan. 5, 2026
- Cohort
- —
- Upvotes
- 5
- Upvotes percentile
- 0.09617918313570488
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:25 p.m.
- Updated at
- Sept. 7, 2026, 9:25 p.m.
Description
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
Enrichment
- Theme
- system maintenance and file utilities
- Vertical
- Energy & climate
- Function
- Analytics & BI
- Audience
- B2B
- AI stance
- AI feature
- Project type
- Commercial product
- Normalized one-liner
- aws cost optimization tool
- Manually corrected
- False
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 — 81 launches clear the similarity bar, closest 8 shown.
Attention rank: #80 of 82 (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.49
- CloudSynth · ph · 2026-09-14 · 1 upvotes · similarity 0.47
- Cloudstic · hn · 2026-03-03 · 5 upvotes · similarity 0.45
- Stateboard · ph · 2026-09-09 · 1 upvotes · similarity 0.42
- Cloudrift · hn · 2026-07-28 · 6 upvotes · similarity 0.42
- SeaGit · ph · 2026-09-18 · 2 upvotes · similarity 0.42
- Cloudflare Drop · ph · 2026-07-11 · 372 upvotes · similarity 0.41
- Nat-zero · hn · 2026-04-28 · 5 upvotes · similarity 0.40
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a analytics & bi tool for Legal yet.