Introduction
Amazon Elastic File System (Amazon EFS) provides a simple, scalable, fully managed elastic NFS file system for use with AWS Cloud services and on-premises resources.
Amazon EFS supports the Network File System version 4 (NFSv4.1 and NFSv4.0) protocol, so the applications and tools that you use today work seamlessly with Amazon EFS. Multiple Amazon EC2 instances can access an Amazon EFS file system at the same time, providing a common data source for workloads and applications running on more than one instance or server.
Amazon EFS is designed to be highly available and durable for thousands of EC2 instances that are connected to the service. Amazon EFS stores each file system object in multiple availability zones.
Prerequisites to mount EFS
- Create two EC2 instances that are running in different AZs.
- Create a security group that has inbound rules set for SSH, HTTP and NFS.
- EC2 instances and EFS should have the same security group assigned.
How to mount EFS on EC2 instances
Conclusion
From this article, we learned about the EFS and how to mount EFS on AWS EC2 instances in different availability zones.