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.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create an EFS File System
Create an EFS file system called
SharedWeb
that we will attach to our EC2 instances.- Mount the EFS File System and Test It
Create the directory
/efs
.Attach the EFS file system to our instance, and copy our existing data to it from
/data
.- Remove Old Data
Unmount the
/data
partition and delete the volume in the EC2 console.