How to delete an orphaned Snapshot from deleted Backup Vault?

0

During a round of testing I ended up deleting a Backup Vault before a copy job was finished with it as a destination. The result is that now I only have access to it through the Snapshots tab in EC2 and I can't delete it there or through the CLI. Is there anything I can do?

Lucas
已提問 1 年前檢視次數 302 次
1 個回答
0

Check if you can list the snapshots in AWS Backup Protected Resources tab by below CLI. aws backup list-protected-resources aws backup list-recovery-points-by-resource --resource-arn "ARN"

If you can see them, you can use delete command that would list and also delete all the recovery points for that Volume resource, following is the example command: aws backup list-recovery-points-by-resource --resource-arn <Resource ARN> --region <Region> --output json --query 'RecoveryPoints[].[BackupVaultName,RecoveryPointArn]' | jq -r '.[] | "--backup-vault-name '''" + .[0] + "''' --recovery-point-arn " + .[1]' | xargs -L1 aws backup delete-recovery-point --region <Region>

AWS
Anil_K
已回答 1 年前

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

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

回答問題指南