Al usar AWS re:Post, aceptas las AWS re:Post Términos de uso

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
preguntada hace 2 meses64 visualizaciones
2 Respuestas
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.

EXPERTO
respondido hace 2 meses
profile picture
EXPERTO
revisado hace 2 meses
0
Respuesta aceptada

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
respondido hace 2 meses
profile picture
EXPERTO
revisado hace 2 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas