Attach Volume to EC2 Instance
![Abishek Kafle](https://cdn.hashnode.com/res/hashnode/image/upload/v1726213286603/488379c0-3bf8-45ec-afb8-db5ac8509d5c.jpeg)
1 min read
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728322832293/fd74b79e-62a6-468b-82c0-017a33c0933d.png)
Tasks
- An instance named
datacenter-ec2
and a volume nameddatacenter-volume
already exists inus-east-1
region. Attach thedatacenter-volume
volume to thedatacenter-ec2
instance, make sure to set the device name to/dev/sdb
while attaching the volume.
Steps
Instance
datacenter-ec2
is running state.Given volume is also exist
Select Attach Volume
EC2 → Volumes → vol-009b9a40a513a7719 → Attach volume
Select the running instance
datacenter-ec2
Device name
/dev/sdb
and attach now- Successfully attached volume vol-009b9a40a513a7719 to instance i-0194b76b228219098.
#cloudcomputing
#happylearning #aws
0
Subscribe to my newsletter
Read articles from Abishek Kafle directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
![Abishek Kafle](https://cdn.hashnode.com/res/hashnode/image/upload/v1726213286603/488379c0-3bf8-45ec-afb8-db5ac8509d5c.jpeg)
Abishek Kafle
Abishek Kafle
Infosec Poet and CAP-certified DevOps/SecOps Engineer, passionate about security, creativity, and continuous learning.