Amazon DocumentDB · Finder + guided fix

Delete idle DocumentDB clusters

RemoveIdle Clusters

Identifies idle Amazon DocumentDB clusters (no database connections over the lookback window) that can be deleted to eliminate instance-hour cost.

What happens, in order.

  1. Finder · read-only

    Finds the opportunity

    Scans your connected accounts with a read-only role. It can see resource metadata and usage; it can’t change anything.

  2. You

    Review in Recommendations

    It appears in your Recommendations view with what it would save.

  3. Guided fix

    You make the change

    You apply it yourself, following the fix’s step-by-step instructions.

Finder role

Read-only. It can see resource metadata and usage. It can’t change anything.

Fixer role

Not used here: this one is a guided fix, so the change is yours to make.

Why it costs money

A provisioned DocumentDB cluster bills each instance per second, with a 10-minute minimum, plus storage per GB-month, I/O on the Standard configuration, and backup storage beyond the cluster’s own size.

The idle test is about connections: DocumentDB’s DatabaseConnections metric counts every open connection, active or idle, on each instance once a minute.

What to look at

  • Provisioned clusters, in the available state (CloudFix rejects stopped clusters) and older than the look-back window, 31 days by default and settable from 1 to 60, whose DatabaseConnections metric shows no connection at any point in the window. Elastic clusters are out of scope.
  • Occasional consumers. A batch job or report that connects less often than the window can still depend on the cluster, so check with its owner.
  • Deletion protection, which is on by default for clusters created in the console and blocks deletion until turned off. In the console, deleting a cluster’s last instance also deletes the cluster.
  • Snapshots. Automatic snapshots are deleted with the cluster, while manual snapshots stay until you delete them.

What the change does

  • CloudFix recommends; you delete the instances and then the cluster, which must be available, so a stopped cluster has to be started first. In the CLI, delete-db-cluster needs either a final snapshot name or --skip-final-snapshot.
  • Restoring the snapshot creates a new cluster with no instances, so you add instances and repoint applications to its new endpoint.

Sources: AWS: Amazon DocumentDB pricing; AWS: Deleting an Amazon DocumentDB cluster; AWS: Stopping and starting a DocumentDB cluster; AWS: Comparing automatic and manual snapshots; AWS: Restoring from a cluster snapshot; AWS: Monitoring DocumentDB with CloudWatch; CloudFix support: remove idle Amazon DocumentDB clusters.

See whether this one applies to your account.

A free savings assessment reports which fixers can be applied to your environment. Results typically within 24 hours.