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
asked 7 months ago378 views
1 Answer
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
EXPERT
answered 7 months ago
profile picture
EXPERT
Steve_M
reviewed 7 months ago
  • 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).

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions