One of the major advantages of EFS is its ability to be mounted on multiple EC2 instances simultaneously. This feature allows efficient data sharing across instances.

EFS Storage Classes
Amazon EFS offers different storage classes to address a variety of use cases:-
Standard Storage Classes:
- EFS Standard
- EFS Standard Infrequent Access
These storage classes provide multi-AZ resilience with high durability and availability.
-
One Zone Storage Classes:
- EFS One Zone
- EFS One Zone Infrequent Access
These options help reduce costs by storing data in a single availability zone.

Performance Modes in EFS
EFS provides various performance modes tailored to different throughput, IOPS, and latency requirements:-
General Purpose Performance Mode:
Ideal for latency-sensitive environments such as web applications, content management systems, home directories, and typical file serving operations. -
Elastic Throughput Mode:
Automatically adjusts throughput performance based on your workload requirements. -
Max I/O Performance Mode:
Supports extremely high aggregate throughput and a large number of operations per second, though it may exhibit higher latencies for certain operations. -
Provisioned Throughput Mode:
Allows specification of a throughput level independent of the file system size. -
Bursting Throughput Mode:
Scales throughput with the amount of storage and supports burst performance for up to 12 hours per day.
Setting Up EFS on an EC2 Linux Instance
This section outlines the process for mounting an EFS file system on an Amazon EC2 Linux instance.Step 1: Install Amazon EFS Utilities
Depending on your package manager, install the Amazon EFS utilities using one of the following commands: For systems that use DNF:Ensure that you have appropriate permissions for installing packages on your EC2 instance.
Step 2: Mount the EFS File System
After installing the utilities, mount your EFS file system to a directory. Replaceefs:id with your actual EFS file system ID (available from the AWS Console) and /directory with your chosen mount point:
Summary
| Feature | Details |
|---|---|
| File System Service | Managed service provided by AWS |
| Protocol | Supports NFS for seamless integration with NFS-based applications |
| Supported Instances | Linux-based EC2 instances only |
| Multi-Instance Mounting | Can be mounted on multiple EC2 instances simultaneously |
| Mount Targets | Provide an IP address for connecting to the EFS file system within a VPC |
| Storage Classes | - Standard (multi-AZ resilience) - One Zone (cost-saving, single-AZ option) |
| Performance Modes | General Purpose, Elastic Throughput, Max I/O, Provisioned Throughput, and Bursting Throughput |
| Boot Storage Limitation | Cannot be used as boot storage for operating systems; EBS is recommended for boot volumes |

Remember, EFS is ideal for shared file systems used by Linux-based applications but is not a substitute for block storage solutions like EBS, especially when used for booting operating systems.