AWS

Amazon EFS: How to create an Elastic File System?

In this infrastructure with autoscaling, the code is not synchronized; it is shared. This requires an Elastic File System (EFS), which we will create in the following tutorial. The creation and configuration of Amazon EFS are needed to share the document root of WordPress without the need for continuous synchronizations. The data should be the same in all the instances of autoscaling. Keep on reading to find out how to create EFS in AWS.

Remember this is just the 4th Part of our sequence of How to create a High-Performance WordPress with Autoscaling on AWS.

Step by Step on How to Create EFS in AWS

Requirements:

  • An account on AWS

Step by step:

1. Login on the AWS account.
2. Verify the region in which the infrastructure will be created. In the upper right corner, click on the button with the city name and choose the region, in this case, it will be Virginia.

3.  Select the Amazon EFS service.

4. Click on “Create file system”.

5. Select the VPC and the private subnet. Press “Next Step”.

6. Assign a name to the EFS and choose the performance mode, it is recommended to keep the value by default. Then, press “Next Step”.

7. Review the configurations and create the EFS.

8. Verify the correct creation of the amazon EFS.

*Note: Verify in the Security Group, that the value of the origin (source) of the traffic is the private network or 0.0.0.0/0.

  1. Connect to the instance via SSH.
  2. Mount EFS in the instance.

a) Click on “Amazon EC2 mount instructions”.

Follow the instructions shown.

The results of this test are as follows:

  • Writing a 500 Mb file in the EFS took 4.74519 seconds with a speed of 100 Mb / s.
  • In a local directory, writing the same file took 7.34338 seconds with a speed of 71.4 Mb / s.

This means that the I/O of the EFS is faster than a local directory.

And that’s it! Those are all the steps that you need to follow to create an Elastic Fyle System. Remember that the objective of this tutorial is to create a high-performance and Auto-scalable WordPress. Do not forget to go to see the whole process and the other tutorials we have prepared for you.

FAQS

What is AWS EFS used for?

AWS EFS (Amazon Elastic File System) is used for providing scalable and fully managed file storage for EC2 instances and other AWS services, enabling multiple instances to access a shared file system simultaneously.

What is the difference between S3 and EFS?

Amazon S3 is an object storage service for storing and retrieving data via HTTP/HTTPS, while Amazon EFS is a file storage service providing scalable file storage accessible via NFS for shared access among multiple EC2 instances.

Which is more expensive EFS or S3?

In general, Amazon EFS (Elastic File System) tends to be more expensive than Amazon S3 (Simple Storage Service) for storing data, primarily due to the differences in storage types and access methods.

Published by
DevOps Guy

Recent Posts

How to Build Generative AI Solutions

Have you ever wondered how companies create customized  AI solutions that captivate customers? The answer…

12 hours ago

How to Integrate AI Into An App: Full Guide 2025

Learning how to integrate AI into an app might be one of the smartest business…

7 days ago

AI Agents Use Cases for Business

The last few years have really shown us what's possible with Artificial intelligence. If you're…

2 weeks ago

ClickIT’s Year in Review: 2024 Highlights & Goals for 2025

2024 is ending, and that only means one thing: ClickIT’s year in review! This year…

3 weeks ago

How to Implement AI Data Management In Your Business

Have you ever wondered how businesses easily process enormous volumes of data, derive valuable insights,…

2 months ago

Developing Cloud Applications: The Complete Guide for 2025

Discover the steps for developing cloud applications, from costs to cloud app deployment

2 months ago