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
    9.7K+ Learners
    4.56  (340)
    Introduction to Kubernetes
    2 hrs
    Beginner
    8.5K+ Learners
    4.29  (303)
    Angular7 for Advanced Level
    3 hrs
    Advanced
    11.5K+ Learners
    4.6  (401)
    Visual Studio Online
    1 hrs
    Beginner
    15.1K+ Learners
    4.44  (602)
    Software Testing Tutorial
    1 hrs
    Beginner
    146.9K+ Learners
    4.51  (13156)
    Programming Basics
    1 hrs
    Beginner
    196.7K+ Learners
    4.46  (13784)
    Coding Environment
    1 hrs
    Beginner
    21.9K+ Learners
    4.32  (513)
    JQuery Tutorial
    1 hrs
    Beginner
    12.5K+ Learners
    4.42  (777)