DEV Community

Managing Deletion and Recovery of EBS Volumes, Snapshots and AMIs with AWS Recycle Bin

“ I have checked the documents of AWS for managing deletion and recovery of ebs volumes, snapshots and amis with aws recycle bin. Recycle bin makes it easy for ebs volume, snapshot and ami to handle deletion and recovery of it with retention rule. In terms of cost, the solution is cheaper and secure.”

Recycle Bin is a resource recovery feature that enables you to restore accidentally deleted EBS volumes, EBS snapshots and EBS-backed AMIs. When using recycle bin, if your resources are deleted, they are retained in the recycle bin for a time period that you specify.

You can restore a resource from the recycle bin at any time before its retention period expires. After you restore a resource from the recycle bin, the resource is removed from the recycle bin and you can then use it in the same way you use any other resource of that type in your account. If the retention period expires and the resource is not restored, the resource is permanently deleted from the recycle bin and is no longer available for recovery.

In this post, you will experience managing deletion and recovery of ebs volumes, snapshots and amis with aws recycle bin. Here I have created a retention rule in the recycle bin which tends to handle and store the deleted ebs volume, snapshot and ami and also recover it when required.

Architecture Overview


The architecture diagram shows the overall deployment architecture with data flow, recycle bin, ebs volume, ebs snapshot.

Solution Overview

The blog post consists of the following phases:

  1. Create the Retention Rule in Recycle Bin
  2. Output of EBS Volume Deletion and Recover in Recycle Bin

I have an ebs volume and ebs snapshot already created.

Phase 1: Create the Retention Rule in Recycle Bin

  1. Open the Recycle Bin console, Create a retention rule. Give retention rule name with select resource type and resource to retain. Give retention period with select of rule lock setting. Once the retention rule is created, we can change the retention period and lock the retention rule.

Phase 2: Output of EBS Volume Deletion and Recover in Recycle Bin

Clean-up

EC2: ebs volume, ebs snapshot and recycle bin: retention rule.

Pricing

I review the pricing and estimated cost of this example.

Recycle Bin = $0.00

EBS Volume = $0.00

EBS Snapshot = $0.00

Total Cost = $0.00

Summary

In this post, I showed “managing deletion and recovery of ebs volumes, snapshots and amis with aws recycle bin”.

For more details on Recycle Bin, Checkout Get started Recycle Bin, open the Recycle Bin console. To learn more, read the Recycle Bin documentation.

Thanks for reading!

Connect with me: Linkedin

Top comments (0)