Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.18 KB

File metadata and controls

35 lines (29 loc) · 1.18 KB

AWS EFS - Mount EFS from a Different VPC (same Region)

The purpose of this excercise is to demonstrate how to mount EFS File System to an EC2 Instance, from a different VPC.

Requirements

  • Create 2 different VPC
    • don't have overlapping CIDR Ranges
    • have matching AZs (the EFS Mount Point and EC2 needs to be in the same AZ)
  • Create the EFS in VPC 1
  • Create the EC2 in VPC 2
  • Mount the EFS to EC2
  • Clean Up! Don't Forget to Delete Your Resources!

Desired Architecture

Desired Arch for Mounting EFS to EC2

Tips and Tricks

Installing EFS-Helper on Amazon Linux 2

sudo yum install -y amazon-efs-utils

Adding a Host Entry for the Mount Target

echo "<mount target ip> <efs id>.efs.<region>.amazonaws.com" | sudo tee -a /etc/hosts

Mounting with EFS-Helper

sudo mount -t efs -o tls <file system id> /mnt/data/

Resources

  1. VPC Peering Connection
  2. EFS Utils/GitHub
  3. Walkthrough: Mount a File System from Different VPC