EFS file storage and mount targets
Shared files for multiple applications
Amazon Elastic File System (EFS) provides managed network file storage for compatible NFS clients. Imagine two Linux application servers that must read the same uploaded report. Instead of copying a separate report to each server, both can mount one EFS file system and use a shared path. NFS (Network File System) is a protocol for accessing remote files. Unlike S3 object APIs, a mounted file system gives applications familiar file and directory operations. Unlike a typical EBS volume used as a single server disk, EFS is designed for simultaneous file access. Applications must still coordinate concurrent updates.
Mount targets and failure domains
A mount target is a network endpoint, not a second copy of the file system. For Regional EFS, plan a mount target in each AZ containing clients, with at most one per AZ. Clients in different subnets of an AZ can use that target when network policy allows. Regional storage distributes data across multiple AZs; One Zone storage resides in one AZ and permits one mount target in that AZ. If the application must survive an AZ outage, use Regional storage and compute in multiple AZs. A second mount target does not replace a backup. Cross-AZ traffic may add cost and latency.
Three independent access checks
For an illustrative private VPC, allow TCP 2049 inbound on the mount target security group from the application security group and permit matching outbound traffic from the clients. Check routing, DNS and network ACLs as applicable. Next, evaluate EFS file-system policy and IAM client authorization if configured; an IAM role used for management is not automatically permission to read files. Finally check POSIX user/group IDs and file permissions. An EFS access point can impose a directory root and user identity for an application. Use encryption at rest and TLS in transit with a supported mount helper; validate key permissions and backup settings. Never grant every client access just to fix a timeout.
Throughput and recovery
Throughput is the amount of data transferred per unit of time; IOPS counts operations per second. A workload with many small files can be limited by metadata latency even when bandwidth is available. EFS General Purpose is the recommended performance mode for ordinary designs. Elastic throughput adapts to demand, Provisioned throughput sets capacity independently of stored size, and Bursting relates baseline and burst capacity to stored data and credits. Max I/O is not compatible with Elastic throughput or One Zone. Storage lifecycle choices can introduce access charges; measure actual access patterns before changing them. Backups and tested restores protect against accidental deletion; replication and redundancy alone cannot guarantee recovery.
Practice: a shared report directory
On paper, place app A in AZ-a and app B in AZ-b of an illustrative commercial Region (aws partition, us-east-1; actual account AZ names and eligibility are not asserted). Choose Regional EFS, one mount target per client AZ, and an application-specific access point. If A can connect but receives Permission denied when writing, inspect file ownership and authorization before opening more ports. If B cannot connect at all, inspect its route, DNS and security group. Explain how a deleted report would be recovered from a verified backup. No account or mount command is required. Next: choose a specialized FSx file system.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
EFS file storage and mount targets — knowledge check
Apply shared and hybrid storage concepts to fictional workloads.
Two Linux servers must read and update the same directory. What is the best initial candidate?
Two subnets in AZ-a need the same Regional EFS system. How many mount targets can that system have in AZ-a?
The client can mount the filesystem but cannot write a particular directory. What should you check next?
Which throughput mode adjusts throughput with demand rather than requiring you to specify a fixed provisioned rate?
A report is accidentally deleted. Which preparation helps recover its contents?