Articles → AWS → EFS (Elastic File System) In AWS
EFS (Elastic File System) In AWS
Purpose
Steps
- Launch 2 Linux EC2 instances
- Create a security group for EFS
- Create EFS
- Create a folder in both EC2 instances
- Download and install the EFS utility for Linux
- Mount the EFS folder
- Test EFS
Launch 2 Linux EC2 Instances
Click to Enlarge
Create A Security Group For EFS
Type | Value |
---|
Type | NFS |
Protocol | TCP |
Port range | 2049 |
Source | Custom |
< security group of EC2 instances > | |
Click to Enlarge
Create EFS
Click to Enlarge
Click to Enlarge
Click to Enlarge
Click to Enlarge
Click to Enlarge
Click to Enlarge
Click to Enlarge
Click to Enlarge
Click to Enlarge
Create A Folder In Both EC2 Instances
Download And Install The EFS Utility For Linux
sudo yum install -y amazon-efs-utils
Mount The EFS Folder
sudo mount -t efs fs-010314a8623bf9213 EFS/
- fs-010314a8623bf9213 is the File System Id
- EFS/ is the folder name
Test EFS
Click to Enlarge
Click to Enlarge