AWS › Amazon EFS (Elastic File System)

How do EFS mount targets work across multiple Availability Zones?

Intermediate

Answer

An EFS mount target is a network endpoint created within a specific subnet and Availability Zone that EC2 instances use to connect to the file system, and by creating a mount target in each Availability Zone of your VPC, you ensure that instances in any zone can access the same shared file system with low latency, even providing resilience if one Availability Zone experiences issues.
aws efs create-mount-target --file-system-id fs-12345678 --subnet-id subnet-0123abcd --security-groups sg-0123abcd
Real-world example A company running its application across three Availability Zones for high availability creates an EFS mount target in each zone, ensuring every instance can access shared files locally without added cross zone latency.

Common follow-ups: What happens if you try to mount EFS from a subnet without a mount target?;How do security groups control access to an EFS mount target?