Amazon DynamoDB · Finder + automated fixer

Delete idle DynamoDB tables

Delete

Delete Idle DynamoDb tables

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

    Approve in Recommendations

    It appears in your Recommendations view with what it would save. Approve the resources you choose. Nothing has changed yet.

  3. Fixer

    Runs in your account

    The fixer runs as an AWS Systems Manager Automation runbook in your AWS account, and acts only on the resources you approved.

  4. Record

    Logs the execution

    The Systems Manager execution is logged, so every change can be audited.

Finder role

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

Fixer role

A separate, minimal role that acts only on the resources you approved, through AWS Systems Manager.

Why it costs money

A DynamoDB table nobody reads or writes still pays for its stored data every month, and a provisioned-capacity table also pays for the capacity it holds.

Deleting a table removes it with its indexes and streams, and AWS describes the deletion itself as unrecoverable, so the backup taken first is what makes a way back.

What to look at

  • Tables at least 30 days old with no consumed read or write capacity over the look-back, 30 days by default (7 or 60 if you choose), above a yearly cost minimum.
  • Tables CloudFix leaves alone: those with active streams, global secondary indexes or triggers, which usually mean a live workload; global tables; names matching your protected prefixes; and tables tagged cloudfix:dontFixIt.
  • Deletion protection. A table with it turned on can’t be deleted until an administrator turns it off.
  • How long you might need the data. The fixer’s backup moves to cold storage after 7 days and is deleted after 97 by default; both can be changed.

What the change does

  • The fixer confirms the table is active, starts an AWS Backup job tagged with its details, waits for it to finish, deletes the table and checks the deletion. If any step fails, it removes the new recovery point, sends an SNS alert and leaves the table in place.
  • To undo, restore the recovery point with AWS Backup, which creates a new table under the name you give. The table is unavailable until then.

Sources: AWS: Basic operations on DynamoDB tables; AWS: DynamoDB on-demand pricing; AWS: DynamoDB provisioned capacity pricing; AWS: Restoring a DynamoDB table from AWS Backup; CloudFix support: DynamoDB idle table cleanup.

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.