Introduction
Amazon EFS offers a simple, scalable, elastic file storage for use with AWS Cloud services and on-premises resources. It's incredibly versatile, allowing us to easily scale our storage on the fly to several petabytes without managing the underlying storage infrastructure. This blog post will walk through the basics of getting started with EFS, including how to create an EFS file system, connect it to an EC2 instance, and the role of access points in managing file system access. For a more theoretical introduction to EFS, we can refer to cloudericks.com/blog/understanding-amazon-efs.
Step 1: Create Your EFS File System
- Log in to AWS Management Console: Navigate to the EFS dashboard within the AWS Management Console.
- Create File System: Click "Create File System." We'll be prompted to configure our file system.
- Configure Network Access: Choose the VPC and subnets where our file system will be accessible. We need to select at least one, but for higher availability, select multiple subnets across different Availability Zones.
- Set Throughput and Performance Mode: Depending on our application's needs, we can choose between the Standard and Max I/O performance modes. Additionally, we can opt for Provisioned Throughput if our application requires a specific throughput level.
- Review and Create: Review our configuration and click "Create File System."
Step 2: Connect EFS to EC2
-
Launch an EC2 Instance: If we don’t already have one, launch an EC2 instance in the same VPC as our EFS file system. Ensure the instance's security group allows inbound NFS traffic (port 2049).
-
Install the EFS Mount Helper: Connect to our EC2 instance via SSH and install the Amazon EFS client to simplify mounting our file system. For Amazon Linux 2, we can use:
sudo yum install -y amazon-efs-utils
-
Mount the File System: Use the EFS mount helper to mount our file system to a directory on our EC2 instance. Replace
fs-xxxx
with your file system's ID andmount-point
with your desired directory:sudo mount -t efs fs-xxxx:/ /mount-point
Conclusion
Amazon EFS is a powerful tool for adding scalable, managed file storage to our cloud and on-premises applications. By following the steps outlined above, we can quickly get started with EFS, connecting it to an EC2 instance for our application's needs. Whether deploying a new application or migrating existing workloads to the cloud, EFS provides a robust, simple-to-use solution for our file storage needs.
Stay connected with news and updates!
Join our mailing list to receive the latest news and updates from our team.
Don't worry, your information will not be shared.
We hate SPAM. We will never sell your information, for any reason.
Recent Posts
Categories
All Categories all aws all azure all gcp amazon ec2 amazon s3 announcements aws aws analytics aws architecture aws automation aws cloudhsm aws comparison 101 aws compliance aws compute aws containers aws cost management aws developer tools aws devops aws directory aws feature 101 aws governance aws iam aws kms aws management tools aws messaging aws monitoring aws networking aws optimizations aws policies aws principles 101 aws recipes aws security aws serverless aws service 101 aws ssm aws storage aws tools 101 aws vpc azure governance azure networking azure security cloud computing ec2 security gcp governance getting started migrated multi-cloud roadmaps s3 security security updatedLead Author @ Cloudericks Blogs
Heartin Kanikathottu
Principal Cloud Architect & Author
The Cloudericks blog posts are created and maintained by Heartin Kanikathottu and his team at Cloudericks with a bit of AI help. Heartin is an accomplished Cloud Architect and a prolific international author recognized globally, with one of his books being named all-time 8th best in cloud computing. Read more at heartin.github.io.
Want to askĀ doubts directly to Heartin and team?
Please become a Cloudericks member to join the KEWA group andĀ ask any questions directly to Heartin and the Cloudericks team! You can alsoĀ get access to our courses, cookbooks, quizzes, and the KEWA group!
Special Note: If you purchase any of Heartin's books related to cloud,Ā ask for a complimentary membership to KEWA group.Ā