Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Reduce Storage Costs with EFS

Amazon Elastic File System (Amazon EFS) provides a simple, serverless elastic file system that lets you share file data without provisioning or managing storage. In this lab, we modify three existing EC2 instances to use a shared EFS storage volume instead of duplicated Elastic Block Store volumes. This reduces costs significantly, as we only need to store data in one location instead of three. By the end of this lab, you will understand how to create EFS volumes and attach them to an EC2 instance.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 1h 0m
Published
Clock icon Jun 30, 2021

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Create an EFS File System

    Create an EFS file system named 'SharedWeb' in the provided VPC.

    Customize the storage class to 'One Zone' and leave the availability zone as 'us-east-1a'.

    After creation, modify the security group of the file system to 'EC2SecurityGroup'.

    Configure the inbound rules of the non-default security group in EC2 to allow NFS traffic from any source.

  2. Challenge

    Mount the EFS File System and Test It

    Connect to the 'webserver-01' instance and create a directory '/efs'.

    Mount the EFS file system to the '/efs' directory using the provided NFS command.

    Verify the successful mount by checking the mounted file systems after a restart.

    Move all files from '/data' to '/efs' using the 'rsync' command.

    Verify the successful file transfer by listing the contents of '/efs'.

  3. Challenge

    Remove Old Data

    Unmount the '/data' partition and modify the '/etc/fstab' file to replace the UUID line with the NFS mount point details.

    Test the new mount point by unmounting '/efs' and using the 'mount -a' command.

    Detach and delete the 10 GiB EBS volume attached to 'webserver-01' in the EC2 console.

    Repeat the process of modifying the '/etc/fstab' file and testing the new mount point for 'webserver-02' and 'webserver-03'.

    Detach and delete the 10 GiB EBS volumes attached to 'webserver-02' and 'webserver-03'.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans