使用AWS re:Post即您表示您同意 AWS re:Post 使用条款

AWS Cross-Region Backup

0

My main workloads exist in eu-west-1 (Ireland). I have enabled cross-region copy in my backup plan so that jobs are copied over to eu-west-2 and eu-west-3. Since my EC2-other costs are quite high, I have disabled cross-region copy. Effectively, how do I delete EBS snapshots and AMIs in eu-west-2 and eu-west-3?

profile picture
已提问 2 个月前64 查看次数
2 回答
2

If it was AWS Backup that replicated the backups, they're now in backup vaults in the destination regions. You must delete the recovery points from the destination vaults, and AWS Backup will take care of the technicalities of deregistering the AMIs and deleting snapshots associated with those recovery points.

You won't be able to delete the AMIs or snapshots via the regular EC2 console or CLI, because they are owned and protected by the AWS Backup service.

专家
已回答 2 个月前
profile picture
专家
已审核 2 个月前
0
已接受的回答

To delete EBS snapshots and AMIs in eu-west-2 and eu-west-3 after disabling cross-region copy, you'll need to follow these steps:

  1. For EBS snapshots:
  • Use the Amazon EBS console, AWS CLI, or SDKs to delete the snapshots in eu-west-2 and eu-west-3.
  • You can delete snapshots one at a time through the console or use AWS SDKs to delete multiple snapshots at once.
  • Be aware that you cannot delete snapshots that are less than 60 days old, used by AMIs, or managed by AWS Backup service using the standard deletion process.
  1. For AMIs:
  • First, you need to deregister the AMIs in eu-west-2 and eu-west-3.
  • After deregistering the AMIs, you can then delete the associated EBS snapshots.

Important considerations:

  • You cannot delete snapshots of the root device of an EBS volume used by a registered AMI. Deregister the AMI first.
  • Snapshots managed by AWS Backup service must be deleted using AWS Backup, not through Amazon EC2.
  • If a snapshot is still in progress, the deletion will only take effect after the snapshot completes.
  • Snapshots in the Recycle Bin may be retained based on retention rules instead of being immediately deleted.
  • You cannot delete snapshots associated with disabled EBS-backed AMIs without first enabling and then deregistering the AMI.

Remember to check both eu-west-2 and eu-west-3 regions separately when performing these operations, as each region will have its own set of snapshots and AMIs to manage.
Sources
EBS Snapshot | Delete - AMS Advanced Change Type Reference
Delete an Amazon EBS snapshot - Amazon EBS
Retaining Amazon EC2 AMI snapshots for compliance using Amazon EBS Snapshots Archive | AWS Storage Blog

profile picture
已回答 2 个月前
profile picture
专家
已审核 2 个月前

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

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

回答问题的准则