Amazon Elastic Block Store (EBS) provides block storage volumes for EC2 instances. An EBS volume acts like a network-attached disk: you can format it, mount it, resize it and snapshot it, and its data stays separate from the instance's lifecycle. Each volume lives in a single Availability Zone and attaches to instances in that zone.
The guides here walk through everyday volume tasks on Linux: creating and attaching a volume, formatting and mounting it, adding an /etc/fstab entry so it mounts again after a reboot, and increasing disk size on a running instance. Several posts cover EBS as persistent storage for Kubernetes on Amazon EKS, including StorageClass, PersistentVolume and PersistentVolumeClaim YAML, the EBS CSI driver for production clusters, and a StorageClass setup for GitLab. You'll also find a Terraform example for an EC2 instance with an attached EBS volume, an explanation of what happens to volumes when you stop or terminate an instance, and AWS SysOps and interview practice questions.
The material is aimed at cloud and DevOps engineers who manage EC2 storage, Kubernetes administrators running stateful workloads on EKS, and candidates preparing for AWS certifications or interviews.
Start here
- AWS Tutorial: How to Attach and Mount an EBS volume to EC2 Linux Instance? – Core workflow: create, attach, format and mount a volume, checking each step.
- AWS Tutorial: Auto mount EBS Volume to ec2 Linux instance on Reboot – Safely add fstab entries so mounted volumes come back after a reboot.
- AWS Tutorials: EBS – Steps to Increase the Disk Size on a Running EC2 Instance: – Grow a volume without downtime on both Linux and Windows.
- What is the difference between terminating and stopping an EC2 instance? – Learn what happens to attached EBS volumes and billing in each case.
- Terraform Example – AWS EC2 Instance with EBS – Reusable Terraform code that provisions an EC2 instance with an EBS volume.
- Kubernetes Tutorials: Example of StorageClass, PersistentVolume, PersistentVolumeClaim using EBS – Ready-made Kubernetes YAML for EBS-backed storage, with key fields explained.
- How do I setup persistent storage in Amazon EKS? – End-to-end persistent storage setup on EKS using StorageClass and PVC.
Latest Amazon EBS articles
EC2 Boot from EBS Explained: Architecture, Trade-offs, and an AWS CLI Workflow
Booting Amazon EC2 instances from Amazon EBS was a major shift from ephemeral root disks to persistent root volumes. This guide explains what changed, why it mattered, and how to use the model safely in modern operations.
Cloud Tools Adds Amazon EBS Support: Durable EC2 Storage for Database Workloads
This historical update covers when Cloud Tools introduced Amazon EBS support for EC2 applications, including database-backed deployments. It explains the supported storage modes, the backup/restore flow, and practical command-level equivalents.
Guide: AWS EKS Cluster Installation & Setup for Production Usage
Creating the Amazon EBS CSI driver IAM role for service accounts Reference Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about…
AWS Tutorials: EBS – Steps to Increase the Disk Size on a Running EC2 Instance:
you can increase the disk size of an Amazon EC2 instance while it is running. Amazon allows you to modify the size of an Elastic Block Store…
AWS Storage: FAQ
Can u attach Aws vm or you can’t attach disks to a running VM? Yes, you can attach EBS volumes to running EC2 instances in AWS. This…
How to Configure StorageClass with EBS for EKS cluster for Gitlab
Method – 1 to create a volume in an availability zone where you don’t have any volumes on. You can try restricting your StorageClass to the availability zones where…
How do I setup persistent storage in Amazon EKS?
To set up persistent storage in Amazon EKS, you can follow these general steps: Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert…
Kubernetes Tutorials: Example of StorageClass, PersistentVolume, PersistentVolumeClaim using EBS
Storage Class PersistentVolume PersistentVolumeClaim Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best…
Terraform Example – AWS EC2 Instance with EBS
Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…
AWS Tutorial: Auto mount EBS Volume to ec2 Linux instance on Reboot
By default on every reboot, the EBS volumes other than root volume will get unmounted. To enable automount, you need to make an entry in the /etc/fstab…
AWS Tutorial: How to Attach and Mount an EBS volume to EC2 Linux Instance?
Step 1 – Create a Volume Step 2 – Attach a Volume to EC2 Instance Step 3 – Verify if Volume is attached or not Verify if…
AWS Certified SysOps Administrator – Chapter – 5
Review Questions How are charges calculated for data transferred between Amazon Relational Database Service (Amazon RDS) and Amazon Elastic Computer Cloud (Amazon EC2) instance in the Availability…
AWS Interview Questions and Answer Part – 37
What does Amazon EBS stand for? Do the system resources on the Micro instance meet the recommended configuration for Oracle? Will I be charged if the DB…
AWS Interview Questions and Answer Part – 29
What security feature ensures no compromise of session keys during operation? Perfect forward secrecy (Ans) Sticky sessions Server order preference SSL offload When EBS volumes are created,…
AWS Interview Questions and Answer Part – 16
Elastic Block Storage is limited in size and won’t auto scale with your storage needs. False True (Ans) Compared to a relational database’s data model… A DynamoDB…
EC2 – EBS Volume Demo:
In this tutorial we are going to Explore and setup extra volume to EC2 instance Step 1 – Login to AWS console, launch EC2 launch wizard page….
AWS Cloudformation Lab and Assignment – 1
Task 1: Using Cloudformation temmplate json, Create a EC2 Instance and output Public IP and Private IPs. Task 2:Using Cloudformation temmplate json, Create a EC2 Instance/ElasticIP/SecurityGroup and…
CloudFormation EC2 Volume ebs elasticip Example Program
Creating a security group Creating an EC2 instance Increased root volume on the EC2 instance Attaching an externally created EBS volume Attached Elastic IP to the instance…
Limitations of volumes you can attach to one aws ec2 instance?
Linux-Specific Volume Limits – 40 volumes Windows-Specific Volume Limits – AWS PV – 26 Citrix PV – 26 Red Hat PV – 17 Instance Type Limits C5,…
AWS Storage FAQ
What data is stored in ephemeral storage of an Amazon EC2 instance? Anything that is not stored on an ebs volume that is mounted to the instance…
What is the difference between terminating and stopping an EC2 instance?
Answer Terminate Instance When you terminate an EC2 instance, the instance will be shutdown and the virtual machine that was provisioned for you will be permanently taken…
Difference between AWS EFS vs EBS vs S3
1 GB to store in US-East-1: (Updated at 2016.dec.20) Glacier: $0.004/Month (Note: Major price cut in 2016) S3: $0.023/Month S3-IA (announced in 2015.09): $0.0125/Month (+$0.01/gig retrieval charge) EBS:…
Amazon EBS: frequently asked questions
Is data on an EBS volume kept when an EC2 instance is stopped?
Yes. EBS volumes keep their data when an instance is stopped. On termination, the root volume is deleted by default, while additional volumes are kept unless their DeleteOnTermination flag is set.
Can I increase an EBS volume's size without stopping the instance?
Yes. You modify the volume size in the console or CLI, then extend the partition and file system inside the OS, for example with growpart and resize2fs or xfs_growfs on Linux.
Can an EBS volume be attached to an instance in a different Availability Zone?
No. A volume can only attach to instances in its own Availability Zone. To move it to another zone, create a snapshot and restore a new volume from it there.
What is the difference between EBS and instance store?
EBS is network-attached storage that persists independently of the instance. Instance store is temporary disk on the host that loses its data when the instance is stopped or terminated.
