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

Configure At Rest Encryption for EFS

AWS Elastic File System (EFS) provides incredible scalability for your storage requirements, making it easy to share data across hundreds or even thousands of EC2 instances. In this lab, students will create an Amazon Elastic File System in the `us-east-1` Region with encryption enabled. Students will also configure mount targets for this file system, enforce encryption in-flight, and finally, mount the file system to a pre-created EC2 instance. Useful reference: [Encryption In Transit](

Google Cloud Platform icon

Path Info

Clock icon Intermediate
Clock icon 45m
Clock icon Jul 14, 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 Named devshare with Encryption Enabled

    Create an EFS file system with the name of devshare. Leave default creation settings to leave encryption enabled.

    Useful reference: Encryption In Transit

  2. Challenge

    Create a Mount Target for EFS Using EFSMountSecurityGroup

    Select your new EFS file system and navigate to the Network tab. Add the EFSMountSecurityGroup security group to each mount target to ensure your EC2 instance will have access to this volume.

    Useful reference: Encryption In Transit

  3. Challenge

    Apply a File System Policy to the EFS Volume to Enforce In-Transit Encryption for All Clients

    Create a file system policy for the EFS volume to enforce in-transit encryption for all of your clients.

    Useful reference: Encryption In Transit

  4. Challenge

    Mount the EFS Volume to the EC2 Instance and Create a File on the Elastic File System

    Connect using cloud_user credentials.

    Use the following command to mount your volume with encryption in flight, replacing fs-00000000 with your file system ID:

    • Example structure: sudo mount -t efs -o tls file-system-id efs-mount-point/

    • Example command mounting to local EFS directory you have created: sudo mount -t efs -o tls fs-000000000 /efs

    Verify the volume is ready for use by creating a file: sudo touch /efs/llama.txt

    Note: Keep in mind that without adding this to our /etc/fstab, the mount will not persist through a reboot. In this case, we are only preparing the volume for use by our team, so that's okay in this lab.

    Useful reference: Encryption In Transit

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