02. πΎ EBS Volume
An EBS (Elastic Block Store) Volume is a network attached block storage that you can attach to your EC2 instances while they run. It allows data persistence even after the instance is stopped or terminated.
βοΈ Key Characteristicsβ
| Feature | Description |
|---|---|
| Type | Network-attached block storage (not physically attached) |
| Persistence | Data persists beyond instance lifetime |
| Mounting | Can only be attached to one instance at a time (at the CCP level) |
| Availability Zone Bound | Volumes are locked to a single AZ |
| Performance | Slight latency since it communicates over the network |
| Provisioned Capacity | Billed for allocated size (GBs) and IOPS |
| Scalability | Volume size and IOPS can be increased over time |
Preserve the root volume when an instance is terminated for troubleshooting or data recovery.
Detach and reattach EBS volumes across instances to retain or migrate data.
π§ Analogyβ
Think of an EBS Volume like a βnetwork USB stickβ
You can attach it, detach it, and move it between compatible instances in the same Availability Zone.


π EBS Volume Mobilityβ
- An EBS Volume in
us-east-1acannot be attached to an instance inus-east-1b. - To move it across AZs or Regions:
- Create a Snapshot of the volume.
- Restore that snapshot in another AZ or Region.
β‘ EBS β Delete on Termination Attributeβ
| Setting | Default Behavior | Description |
|---|---|---|
| Root Volume | β Enabled | Deleted when the EC2 instance terminates |
| Additional Volumes | β Disabled | Not deleted automatically on termination |
π·ββοΈ Creating EBS Volume and Attaching Itβ
-
Go to EC2 Dashboard β Elastic Block Store β Volumes.
-
Click Create Volume β choose size, type, and same AZ as your instance β Create.

-
Select the new volume β Actions β Attach Volume β choose your instance β Attach.
