Back to Browse

Day 12: Attach Volume to EC2 Instance

16 views
Apr 24, 2026
13:28

💾 Day 12: Attach Volume to EC2 Instance | 100 Days of Cloud (AWS) Welcome to Day 12 of the 100 Days of Cloud (AWS) series! In this lab, you’ll learn how to attach an EBS volume to an EC2 instance — a common task for adding storage to cloud servers. 📌 Lab Objective: Attach an existing EBS volume to an EC2 instance. 🛠️ Task Requirements: Instance Name: nautilus-ec2 Volume Name: nautilus-volume Region: us-east-1 Device Name: /dev/sdb 💻 Steps Using AWS Console: Log in to the AWS Management Console Select region us-east-1 (N. Virginia) Go to EC2 Dashboard → Volumes Select nautilus-volume Click Actions → Attach Volume Choose instance nautilus-ec2 Set device name: /dev/sdb Click Attach Volume 🔍 Verify Attachment: Go to EC2 → Instances → nautilus-ec2 → Storage Confirm the volume is attached with device name /dev/sdb 💻 Using AWS CLI: aws ec2 describe-instances \ --filters "Name=tag:Name,Values=nautilus-ec2" \ --query "Reservations[].Instances[].InstanceId" \ --region us-east-1 aws ec2 describe-volumes \ --filters "Name=tag:Name,Values=nautilus-volume" \ --query "Volumes[].VolumeId" \ --region us-east-1 aws ec2 attach-volume \ --volume-id VOLUME_ID \ --instance-id INSTANCE_ID \ --device /dev/sdb \ --region us-east-1 ✅ Expected Outcome: Volume successfully attached to EC2 instance Device name set to /dev/sdb Instance now has additional storage available 📚 What You’ll Learn: What EBS volumes are How to attach storage to EC2 Device naming in Linux instances Managing AWS resources via Console and CLI 🌟 Why This Lab Matters: Attaching volumes is essential for scaling storage, backups, and persistent data handling in cloud environments. 🎯 Series: 100 Days of Cloud (AWS) Build real-world AWS skills step by step. 🔔 Follow OtterTech for more hands-on DevOps and Cloud tutorials! #AWS #EC2 #EBS #CloudComputing #DevOps #AmazonWebServices #Storage #100DaysOfCloud #OtterTech

Download

0 formats

No download links available.

Day 12: Attach Volume to EC2 Instance | NatokHD