AWS

Amazon Elastic Block Store (EBS)

Amazon Elastic Block Store (EBS)

Amazon Elastic Block Store (EBS) is a block storage service that provides raw block-level storage for Amazon Elastic Compute Cloud (EC2) instances. EBS is designed for use with Amazon EC2 and is intended for use as the primary storage for persistent data. EBS provides high-performance storage for applications that require a low-latency connection, such as databases and file systems. It also offers the ability to take point-in-time snapshots of your data, which can be used for backup and disaster recovery. 

Key features of EBS 

Performance: EBS offers a range of performance options, including standard, provisioned IOPS (Input/Output Operations Per Second), and, throughput-optimized volumes, to meet the needs of different workloads.

  • Durability: EBS stores data across multiple devices in a single availability zone, and is designed to sustain the loss of a single device. 
  • Security: EBS supports encryption for data at rest and in transit
  • Integration: EBS integrates with a wide range of AWS services, making it easy to use as a storage layer for applications and workloads. 

​​​​​​​Working with EBS

To get started with EBS, you will need to create an EBS volume and attach it to an EC2 instance. You can create an EBS volume using the AWS Management Console, the AWS CLI, or the EC2 API. 
 

Here is a tutorial on how to use EBS in AWS: 

EBS Volume: 

  • Open the AWS Management Console and Navigate the EC2 dashboard. 
  •  From the left-hand menu, select "Elastic Block Store" and then choose "Volumes." 
  •  To create a new EBS volume click the "Create Volume" button. 
  •  Select the desired volume type and size, and specify the availability zone in which you want to create the volume. 
  •  Click "Create Volume" to create the volume. 
  • To attach the volume to an EC2 instance, select the volume and choose "Actions," then select "Attach Volume." 
  • Select the desired EC2 instance and specify the device name that you want to use to mount the volume. 
  • Click "Attach" to attach the volume to the EC2 instance. 
  • SSH into the EC2 instance and use the Linux “fdisk” command to create a new partition on the volume. 
  • Use the Linux “mkfs” command to create a file system on the volume (e.g. ext4).
  • Use the Linux “mount” command to mount the volume to a directory on the EC2 instance. 
  • You can now use the mounted volume to store data for your applications. 

​​​​​​​​​​​​​​That's it! You have now successfully created and attached an EBS volume to an EC2 instance. 

Top course recommendations for you

    Angular7 for Intermediate Level
    3 hrs
    Intermediate
    8.5K+ Learners
    4.59  (215)
    Introduction to Kubernetes
    2 hrs
    Beginner
    6.8K+ Learners
    4.29  (252)
    Angular7 for Advanced Level
    3 hrs
    Advanced
    9.6K+ Learners
    4.62  (229)
    Java Algorithms
    2 hrs
    Intermediate
    19.1K+ Learners
    4.49  (419)
    Visual Studio Online
    1 hrs
    Beginner
    13K+ Learners
    4.4  (463)
    Software Testing Tutorial
    1 hrs
    Beginner
    122.6K+ Learners
    4.49  (8290)
    Sorting Algorithms in C
    3 hrs
    Beginner
    11.5K+ Learners
    4.49  (195)
    Programming Basics
    1 hrs
    Beginner
    167.1K+ Learners
    4.48  (8436)
    Coding Environment
    1 hrs
    Beginner
    18.7K+ Learners
    4.41  (360)
    JQuery Tutorial
    1 hrs
    Beginner
    10.9K+ Learners
    4.41  (543)