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

EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
0
Accepted Answer

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
answered a month ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions