Skip to main content
ProsperousTech
01 — BUILD: Product Engineering

Why a stopped AWS database comes back on, and how to retire it properly

After a migration, the old database is usually the most expensive thing left behind. Stopping it feels like the safe middle ground: no data is lost and the bill should drop. On AWS, that saving is temporary.

Amazon RDS, Aurora and DocumentDB let you stop a database for up to seven days. After that, AWS starts it again automatically, and full instance charges resume without anyone touching it. This guide explains what to do instead, and which other leftovers keep billing after a move.

1. What "stopped" really means

Stopping an RDS instance or an Aurora or DocumentDB cluster pauses the compute you pay for by the hour. Storage, backups and snapshots keep billing while it is stopped.

The pause is limited to seven days so that the database doesn't fall behind on required maintenance. When the time is up, AWS starts it again on its own and records an event. Unless someone is watching for that event, the first sign is usually the next month's bill.

  • Compute charges stop while the database is stopped, storage and backup charges don't
  • After seven days AWS starts the database again automatically
  • Instances in a cluster restart together and bill as before
  • Nothing in the console warns you on the day it happens unless you set up an alert

2. Decide: keep it, or retire it

A stopped database is a holding position, not a plan. Decide how long you really need a fallback, and what form that fallback has to take.

In most migrations, a verified snapshot is a better fallback than a running cluster. You can restore a new cluster from it if you ever need to, and in the meantime you pay only for snapshot storage.

3. Retire the old database safely

Deleting a production database is irreversible, so do it in a fixed order and check each step.

  • Confirm the new system has been in production long enough and that no service still connects to the old one
  • Take a final manual snapshot; automated snapshots are deleted with the cluster, manual ones are not
  • Restore that snapshot to a temporary cluster and check record counts against the new system, then delete the temporary cluster
  • For long-term retention, also export a logical dump to storage with an object lock
  • Turn off deletion protection, delete the instances, then delete the cluster
  • Write down where the snapshot and dump are, who may restore them and when they can be deleted

4. If you must keep it stopped for longer

Sometimes you can't delete yet, for example while a contract or audit runs. Then make the seven-day restart harmless rather than hoping no one notices.

  • Create an alert on the database's "started" event that notifies the team
  • Automate a stop as soon as AWS starts the database, using a scheduled or event-driven function
  • Set a cost budget with alerts on the account, so a restart shows up within days
  • Put a removal date on the plan and review it

5. The other leftovers that keep billing

The database is rarely the only thing left behind. After moving a system, walk the old account by cost line, not by memory.

  • NAT gateways, which charge by the hour even with no traffic
  • Load balancers with no healthy targets
  • Unattached disk volumes and old snapshots
  • Public IPv4 addresses, which are charged even when attached
  • Log groups with no retention period
  • Container services scaled to zero tasks but with load balancers still in front
  • Development and test servers created for the migration

6. Check the bill, not just the console

The quickest way to see what is still running is the daily cost view, grouped by service. A flat daily line that should be near zero tells you something is still on. Check it a week after the move and again after the first full month.

Common questions

How long can an AWS RDS or DocumentDB database stay stopped?

Up to seven days. After that AWS starts it again automatically, and instance charges resume. Storage and backup charges continue throughout.

Is it safe to delete the old database after a migration?

Yes, if you first take a final manual snapshot, restore it once to prove it works, and confirm nothing still connects to the old database. Manual snapshots are kept after the cluster is deleted.

Do I still pay for a stopped database?

You stop paying for instance hours while it is stopped, but you still pay for storage, backups and snapshots, and full charges return when AWS restarts it.

Related service

Build products customers can rely on.

Product Engineering 

More guides

Have a project in mind?

Tell us what you need to build.

Share where the product is today and where it needs to go. We'll suggest a sensible first step.