Skip to content
Related Articles
Open in App
Not now

Related Articles

How to Attach EBS Volume in EC2 Instance?

Improve Article
Save Article
  • Last Updated : 28 Nov, 2022
Improve Article
Save Article

Pre-requisite: AWS, EC2, and EBS

Elastic Block Store is a type of storage in AWS. It behaves like a virtual hard drive device in AWS and it is persistent storage. In EC2- The instance root volume will be destroyed when we terminate the EC2 instance, as well as data, will also be deleted. That’s why we attach extra volume with our EC2-Instance for the data availability it does not matter EC2 instance is terminated or not. we can easily be attached or de-attached with any EC2 instance but we can use once at a time EBS volume with one EC2 Instance.

EBS Volume Types:

  • SSD
  • HDD
  • Magnetic Disk

Step To Attach EBS Volume in EC2-Instance:

Step 1: Go to All services and click on EC2



Step 2: Click on the Launch Instance.

launch instance


Step 3: Give the EC2 instance name or tag like the “EBS-Volume” name. 

name and tag


Step 4: Choose Amazon Machine Image for your instance.



Step 5: Choose an Instance type.

instance type


Step 6: Choose the Key Pair or Create the Key pair.

key pair


Step 7: Create the Security Group then open the port as per your requirement

security group


Note: By Default EC2 root volume is attached with 8GB. ‘1’ is showing the root volume.

Step 8: Click on the Add new Volume for the extra EBS Volume. ‘2’ is denoting how to attach EBS

config storage


Step 9: Configure the EBS Size.

ebs size


Step 10: Select the EBS type as per your requirement.

ebs type


Step 11:Click on the Launch Instance button.

launch instance


Now you can see both volume Root Volume 8GB and EBS Volume 10GB



My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!