Skip to main content

Database Decommissioning Checlist

Purpose

This checklist is to ensure that all steps are taken to ensure that deleting a service database does not cause any disruption in other parts of the infrastructure.

Steps

  • Determine any potential impact to any other services; see things to look out for below
    • Are any services dependent on this database, directly or indirectly?
    • Is the database backed up?
      • Is there a specific borg repo for this database?

Ensure this database's entry is deleted for borgmatic, otherwise the auto backup service will error out

  • DROP the database from the db server it resides on
  • Ensure that the database's secrets are deleted everywhere
    • Delete database secrets from Bitwarden Secrets Manager after 1 year in the event that access is needed again
    • Delete entries of the database from any host_vars files in ansible, to stop it from re-provisioning