Dawnfix

You migrated. What are you still paying for?

Works with AWS PythonPython

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.

After a migration the old stack is still in the AWS account; Sweeper finds every leftover, prices each one, and writes a teardown plan in a safe order without deleting anything. After the cutover the old stack is still in the account 22 leftovers found NAT gateway, load balancers, RDS, EBS… Each one priced $264.92 a month in all A teardown plan, in safe order 14 to delete, 8 to check first
The sample: 22 leftovers costing $264.92 a month, each with its command. Sweeper never deletes; you run the plan.

What it finds

Things created or last active before your cutover date (--before-date), optionally narrowed by tag:

KindRule
Route 53 records
route53_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 services
ecs_service
ACTIVE with desired count 0.
Beanstalk environments
eb_environment
not terminated, last updated before the cutover (Green health: verify).
Beanstalk applications
eb_application
every live environment is in the plan.
Load balancers
load_balancer
no attached target group has a healthy target.
Classic load balancers
classic_elb
no registered instance is InService.
Target groups
target_group
zero registered targets.
NAT gateways
nat_gateway
no bytes out since the cutover (CloudWatch); its Elastic IP is released after it.
Stopped EC2 instances
ec2_instance
stopped since before the cutover: no compute, but the EBS volumes still bill (verify).
RDS instances
rds_instance
stopped, or no connections since the cutover; deleted only with a final snapshot (verify).
RDS manual snapshots
rds_snapshot
taken before the cutover; the last copy of a deleted database is "verify".
AMIs
ami
own, not used by any instance (verify: launch templates are not checked).
EBS snapshots
snapshot
own, before the cutover, not backing a kept AMI.
EBS volumes
ebs_volume
available, attached to nothing.
Elastic IPs
elastic_ip
not associated.
Log groups
log_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

  1. Install the CLI from PyPI. The dawnfix package (version 0.5.0, Python 3.11 or later) holds every Python tool. To build from source instead, clone dawnfix/dawnfix and run make install in its sweeper/ folder:
    python3 -m venv .venv
    .venv/bin/pip install dawnfix==0.5.0
  2. Sign in to AWS as usual (aws sso login --profile prod), then scan from your cutover date:
    .venv/bin/sweeper scan --before-date 2026-09-01 --region us-east-1 --out plans/
    It writes plans/sweeper-plan.md and plans/sweeper-plan.json. You run the commands yourself, after review.
  3. 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.