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 年前323 查看次数
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 年前

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

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

回答问题的准则