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?

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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인