EC2 Instance Storage
EC2 Instance Storage
EBS
- An EBS (Elastic Block Store) Volume is a network drive you can attach to your instances while they run
- It allows your instances to persist data, even after their termination
- They can only be mounted to one instance at a time (at the CCP level)
- They are bound to a specific availability zone
- Analogy: Think of them as a "network USB stick"
Notes: CCP - Certified Cloud Practitioner - one EBS can be only mounted to one EC2 instance
Associate Level (Solution Architect, Developer, SysOps): "multi-attach" feature for some EBS
EBS Volume
- It's a network drive (i.e. not a physical drive)
- It uses the network to communicate the instance, which means there might be a bit of latency
- It can be detached from on EC2 instance and attached to another one quickly
- It's locked to an Availability Zone (AZ)
- An EBS Volume is us-east-1a cannot be attached to us-east1b
- To move a volume across, you first need to snapshot it
- Have a provisioned capacity (size in GBs, and IOPs)
- You get billed for all the provisioned capacity
- You can increase the capacity of the drive over time
- It has a option know as delete on termination
- Controls the EBS behavior when as EC2 instance terminates
- By default, the root EBS volume is deleted (attribute enabled)
- By default, any other attached EBS volume is not deleted (attribute disabled)
- This can be controlled by the AWS console/AWS CLI
- Use case: preserve root volume when instance is terminated
- EBS volume named io1 and io2 can be attached to multiple instances and known as EBS Multi-Attach feature.
EBS Snapshots
- Make a backup (snapshot) of your EBS volume at a point in time
- Not necessary to detach volume to do snapshot, but recommended
- Can copy snapshots across AZ or Region




Comments
Post a Comment