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
已提问 8 个月前408 查看次数
1 回答
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
专家
已回答 8 个月前
profile picture
专家
Steve_M
已审核 8 个月前
  • 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).

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则