Trying to delete a RDS public snapshot

0

I am trying to delete RDS snapshot's left behind by my development team who are no longer on the project as it is completed fuly, however I am getting the message;

Cannot delete snapshot

To delete a shared or public snapshot, you must use the log into the AWS account that owns the snapshot.

Can you please assist as this is costing me money unnecessarily.

Barry
preguntada hace 8 meses408 visualizaciones
1 Respuesta
0

Hi,

A RDS snapshot can be taken on a database in a given account and be shared with other accounts. They can use it to restore a clone of the initial database from their own account. See https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ShareSnapshot.html

So, in your case, the snapshot what created in a different account and share with the account from which you are trying to delete it. But, you can only delete it from the account who created. So, go to this account and delete the snapshot (or ask the account admin to do it for you).

To know the owner of your snapshot, use aws rds describe-db-snapshots with option --snapshot-type shared. See https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/describe-db-snapshots.html

Best,

Didier

profile pictureAWS
EXPERTO
respondido hace 8 meses
profile picture
EXPERTO
Steve_M
revisado hace 8 meses
  • And what if I don't have access to those other accounts? I am new to AWS and I was only given access to the root account (I have been left as the last IT guy in the company, and some of the people who managed those accounts have been gone for years).

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas