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 3 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 1 location instead of 3. By the end of this lab, you will understand how to create EFS volumes and attach them to an EC2 instance.
Successfully complete this lab by achieving the following learning objectives:
- Create EFS Filesystem
Create an EFS filesystem called
SharedWebthat we will attach to our EC2 instances.
- Mount the EFS Filesystem and Test It
Create the directory
Attach the EFS filesystem to our instance and copy our existing data to it from
- Remove Old Data
/datapartition and delete the volume in the EC2 console.