You migrated. What are you still paying for?
Works with AWS Python
Dawnfix Sweeper scans an AWS account after a cutover and writes a teardown plan: every leftover from the old stack with its monthly cost and the exact command to remove it, in a safe order. It never deletes anything: every AWS call goes through a read-only allowlist. Free and source available.
What it finds
Things created or last active before your cutover date (--before-date), optionally narrowed by tag:
| Kind | Rule |
|---|---|
Route 53 recordsroute53_record | alias or CNAME to a load balancer or Beanstalk name that no longer exists (or that this plan deletes); with --ip-ranges, A records to AWS addresses the account no longer owns. First: a dangling name is a takeover risk. |
ECS servicesecs_service | ACTIVE with desired count 0. |
Beanstalk environmentseb_environment | not terminated, last updated before the cutover (Green health: verify). |
Beanstalk applicationseb_application | every live environment is in the plan. |
Load balancersload_balancer | no attached target group has a healthy target. |
Classic load balancersclassic_elb | no registered instance is InService. |
Target groupstarget_group | zero registered targets. |
NAT gatewaysnat_gateway | no bytes out since the cutover (CloudWatch); its Elastic IP is released after it. |
Stopped EC2 instancesec2_instance | stopped since before the cutover: no compute, but the EBS volumes still bill (verify). |
RDS instancesrds_instance | stopped, or no connections since the cutover; deleted only with a final snapshot (verify). |
RDS manual snapshotsrds_snapshot | taken before the cutover; the last copy of a deleted database is "verify". |
AMIsami | own, not used by any instance (verify: launch templates are not checked). |
EBS snapshotssnapshot | own, before the cutover, not backing a kept AMI. |
EBS volumesebs_volume | available, attached to nothing. |
Elastic IPselastic_ip | not associated. |
Log groupslog_group | no event since the cutover. |
Prices are AWS on-demand list prices for 17 regions from the AWS Price List bulk API (newest offer published 2026-10-27), bundled with the tool: it never fetches prices, and they are estimates, not a bill (no Savings Plans, credits or data charges). Not covered yet: Aurora clusters, CloudFront, S3, API Gateway and dangling DNS to them, launch templates and Auto Scaling groups.
How to run it
- Install the CLI from PyPI. The
dawnfixpackage (version 0.5.0, Python 3.11 or later) holds every Python tool. To build from source instead, clone dawnfix/dawnfix and runmake installin itssweeper/folder:python3 -m venv .venv .venv/bin/pip install dawnfix==0.5.0 - Sign in to AWS as usual (
aws sso login --profile prod), then scan from your cutover date:
It writes.venv/bin/sweeper scan --before-date 2026-09-01 --region us-east-1 --out plans/plans/sweeper-plan.mdandplans/sweeper-plan.json. You run the commands yourself, after review. - Or use it from your coding agent: paste
prompts/sweeper.md. The agent runs the scan and walks you through the plan. It never runs the delete commands.
The IAM policy it needs
Describe, List and Get only, plus cloudwatch:GetMetricData for NAT gateway traffic and RDS connections since the cutover (one request per region, a fraction of a cent). This is sweeper/iam/sweeper-read-only-policy.json, verbatim; the CLI refuses any call outside it before the request is built:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DawnfixSweeperReadOnly",
"Effect": "Allow",
"Action": [
"cloudwatch:GetMetricData",
"ec2:DescribeAddresses",
"ec2:DescribeImages",
"ec2:DescribeInstances",
"ec2:DescribeNatGateways",
"ec2:DescribeSnapshots",
"ec2:DescribeVolumes",
"ecs:DescribeServices",
"ecs:ListClusters",
"ecs:ListServices",
"elasticbeanstalk:DescribeApplications",
"elasticbeanstalk:DescribeEnvironmentResources",
"elasticbeanstalk:DescribeEnvironments",
"elasticbeanstalk:ListTagsForResource",
"elasticloadbalancing:DescribeInstanceHealth",
"elasticloadbalancing:DescribeLoadBalancers",
"elasticloadbalancing:DescribeTags",
"elasticloadbalancing:DescribeTargetGroups",
"elasticloadbalancing:DescribeTargetHealth",
"logs:DescribeLogGroups",
"logs:DescribeLogStreams",
"logs:ListTagsForResource",
"rds:DescribeDBInstances",
"rds:DescribeDBSnapshots",
"route53:ListHostedZones",
"route53:ListResourceRecordSets"
],
"Resource": "*"
}
]
}
Catch the next one at deploy time
Leftovers are a cost you notice months later. Dawnfix Receipt, also free, comments on each deploy with what it did to the AWS bill, from your own CI.
Set up Dawnfix (https://github.com/dawnfix/dawnfix), the source-available AI SRE, in this GitHub repo and try it once. Follow prompts/setup.md in that repo, step by step. In short: npx dawnfix init writes .dawnfix.yml and a 15-line workflow that calls dawnfix/dawnfix/.github/workflows/dawnfix.yml@v0. Then comes a read-only cloud role, then two repo settings set by name. For the local CLI, run pip install dawnfix==0.5.0. Rules: - Before you change anything (a file, a cloud role, a repo variable, a commit, a PR), tell me exactly what you will change and wait for my yes. - Least privilege: the AWS role or GCP identity must be read-only. Check the AWS role with infra/aws/verify_readonly.py from the Dawnfix repo, and stop if it fails. Never widen a policy to make it pass. - Never ask me to paste a secret into this chat, and never print one. I set my AI API key (Claude today) myself with gh secret set DAWNFIX_AI_API_KEY, and DAWNFIX_ENTERPRISE_KEY only if I have Enterprise. - Start with autonomy: diagnose in .dawnfix.yml (issues only, no code changes). Never push to the default branch; everything goes through a PR I review. - Tell me what it costs me: my own Claude tokens (on my AI API key), GitHub Actions minutes and small CloudWatch API charges. No Dawnfix key is needed. To try it, run this with my read-only credentials and show me the JSON it prints: dawnfix tick --config .dawnfix.yml --state "$(mktemp -d)/state.json" --baseline --dry-run Then open the setup PR.