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).

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南