Amazon EBS Volume

Nidhi Ashtikar
4 min readJan 13, 2025

--

Amazon Elastic Block Store (EBS) is a cloud-based block storage service provided by Amazon Web Services (AWS).

It offers persistent storage volumes that can be attached to Amazon EC2 instances.

We can keep data persistent even after Instance Termination.

One EBS Volume can be attached to only one EC2 Instance

Two EBS Volume can be attached to one EC2 Instance

  • By default, Delete on termination is YES for Root volume
  • Delete on termination is NO for the Attached EBS Volume

EBS offers various volume types tailored to different workloads:

  • General Purpose SSD (gp2/gp3): Balances price and performance for a wide range of transactional workloads.
  • Provisioned IOPS SSD (io1): Designed for latency-sensitive, high-performance applications requiring consistent IOPS.
  • Throughput Optimized HDD (st1) and Cold HDD (sc1): Ideal for large, sequential workloads like big data and log processing

EBS — Snapshot

EBS allows point-in-time snapshots of volumes, facilitating data backup, recovery, and cloning for testing or development purposes.

EBS Snapshot can be Copied to another AZ/ Region.

Enables users to modify volume size, performance characteristics, and volume type without downtime.

  • We can Increase the EBS Volume size but can not Reduce the size.

Use case : If you still want to reduce the size of EBS Volume

Requirment: You have 100GB of EBS Volume attached but only 10GB is in use, now you want to reduce the EBS volume to 30 GB

Solution: Create new EBS Volume of 30GB Attach to same Instance in with 100GB Volume is attached.
Now Copy the data from 100GB Volume to 30GB Volume and then deattach the 100GB Volume.

Encryption of data at rest, in transit, and during snapshots, ensuring data security without the need for additional key management.

Use Case: We want to Encrypt the Volume

Solution: Create a Snapshot of the Unencrypted Volume
Copy the Snapshot with Encryption Enabled
Create a New Encrypted Volume from the Encrypted Snapshot
Detach the Original Unencrypted Volume and Attach the New Encrypted Volume

Allows a single Provisioned IOPS SSD (io1) volume to be concurrently attached to multiple EC2 instances.

Amazon Elastic Block Store (EBS) Snapshot Archive:

Amazon Elastic Block Store (EBS) Snapshot Archive is a cost-effective storage tier designed for long-term retention of infrequently accessed snapshots.

  • You can achieve up to 75% savings in storage costs.
  • Archived snapshots have a minimum retention period of 90 days.
  • Plan for retrieval times of up to 72 hours; it’s not suitable for data requiring immediate access.

Data Lifecycle Manager:

Automates the creation, retention, and deletion of EBS snapshots, simplifying backup management and compliance requirements.

  • Automates snapshot creation, retention, and deletion.
  • Retention Policies: Define how long snapshots are kept to manage costs
  • Tag-Based Policies: Apply rules to volumes based on tags for flexible management.

EBS Recycle Bin:

  • Protects against accidental snapshots or AMI deletions.
  • Custom Retention Rules: Retain deleted resources for a specific period.
  • Seamless Recovery: Restore deleted snapshots or AMIs anytime during the retention period.
  • Automatically stores snapshots deleted by DLM if they match Recycle Bin rules.

Integration of DLM (Data Lifecycle Manager) with Recycle Bin:

  • Snapshots deleted by DLM are moved to the Recycle Bin (if matching rules exist).
  • Recycle Bin ensures deleted snapshots are not permanently lost.
  • Restoration Note: Restored snapshots are no longer managed by DLM.

Automated snapshot deletion reduces storage costs.

Recycle Bin safeguards against accidental deletions.

Simplifies backup and retention for regulatory requirements.

If you found this guide helpful then do click on 👏 the button.

Follow for more Learning like this 😊

Let’s connect! Find me on LinkedIn.

If there’s a specific topic you’re curious about, feel free to drop a personal note or comment. I’m here to help you explore whatever interests you!

Thanks for spending your valuable time learning to enhance your knowledge!

--

--

Nidhi Ashtikar
Nidhi Ashtikar

Written by Nidhi Ashtikar

Experienced AWS DevOps professional with a passion for writing insightful articles.

No responses yet