aws-bleed
v0.1.0
Published
Read-only AWS waste scanner: NAT endpoint tax, infinite logs, zombie EBS/EIPs: USD/mo + Terraform fix
Maintainers
Readme
aws-bleed
5-second read-only scan for expensive AWS hidden taxes: NAT Gateway traffic to S3/DynamoDB without free gateway endpoints, CloudWatch Logs with infinite retention, gp2 and orphaned EBS volumes, idle Elastic IPs, and stale snapshots, complete with USD/month estimates and a fix-bleed.tf Terraform patch.
Install
bunx aws-bleed
npx aws-bleed
# or install in your project / globally
bun add -d aws-bleed
npm i -D aws-bleedJSR:
bunx jsr add @kanchingyg/aws-bleed
npx jsr add @kanchingyg/aws-bleedgo install github.com/kanchingyg/aws-bleed@latestThe core engine is Go (main.go, internal/). TypeScript under src/*.ts is included for npx / bunx / JSR usage and MCP bridge helpers when no native binary is present.
Quick start
npx aws-bleed
bunx aws-bleed
npx aws-bleed --patch fix-bleed.tf --allow-write
npx aws-bleed --mcpWhat you get
| Finding | Fix in patch |
| --- | --- |
| NAT in VPC without S3/DynamoDB gateway endpoints | aws_vpc_endpoint (Gateway) |
| Log groups with retentionInDays = null | retention_in_days |
| gp2 volumes | gp3 migration block |
| available volumes / idle EIPs / old snapshots | Comments + CLI cleanup hints |
MCP + local models
npx aws-bleed --mcp
bunx aws-bleed --mcpUse summarize_exec_report with --model ollama/llama3.2 (or any OpenAI-compatible local server) so cost data stays on your machine.
Requirements
- Node 18+ or Bun for
npx/bunx, or Go 1.22+ for native CLI - AWS credentials with read-only
Describe*/List*(no writes unless you pass--allow-writefor patch files)
