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
![EC2](https://media.geeksforgeeks.org/wp-content/uploads/20221123215427/Screenshot202211232025370101.jpg)
Step 2: Click on the Launch Instance.
![launch instance](https://media.geeksforgeeks.org/wp-content/uploads/20221123215503/Screenshot202211232025410101.jpg)
Step 3: Give the EC2 instance name or tag like the “EBS-Volume” name.
![name and tag](https://media.geeksforgeeks.org/wp-content/uploads/20221123215520/Screenshot2022112320254301.jpg)
Step 4: Choose Amazon Machine Image for your instance.
![ami](https://media.geeksforgeeks.org/wp-content/uploads/20221123215534/Screenshot2022112320254501.jpg)
Step 5: Choose an Instance type.
![instance type](https://media.geeksforgeeks.org/wp-content/uploads/20221123215556/Screenshot202211232025470101.jpg)
Step 6: Choose the Key Pair or Create the Key pair.
![key pair](https://media.geeksforgeeks.org/wp-content/uploads/20221123215612/Screenshot202211232025480101.jpg)
Step 7: Create the Security Group then open the port as per your requirement
![security group](https://media.geeksforgeeks.org/wp-content/uploads/20221123215629/Screenshot202211232025500101.jpg)
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](https://media.geeksforgeeks.org/wp-content/uploads/20221123215644/Screenshot202211232025510101.jpg)
Step 9: Configure the EBS Size.
![ebs size](https://media.geeksforgeeks.org/wp-content/uploads/20221123215723/Screenshot2022112320260401.jpg)
Step 10: Select the EBS type as per your requirement.
![ebs type](https://media.geeksforgeeks.org/wp-content/uploads/20221123215701/Screenshot2022112320255401.jpg)
Step 11:Click on the Launch Instance button.
![launch instance](https://media.geeksforgeeks.org/wp-content/uploads/20221123215738/Screenshot2022112320261101.jpg)
Now you can see both volume Root Volume 8GB and EBS Volume 10GB
![output](https://media.geeksforgeeks.org/wp-content/uploads/20221123215757/Screenshot2022112320261501.jpg)
No comments:
Post a Comment