How to Mount EFS on EC2 Instance

In this article we are going to cover How to Mount EFS on EC2 Instance in AWS

How to Mount EFS on EC2 Instance in AWS

Below are steps to mount EFS on EC2 Instance

Step #1: Select region to Create an EFS File System

select aws region to create efs 1

Step #2: Open the Amazon Elastic File System and Create File System

Open the Amazon Elastic File System and click Create File System 2

Step #3: Configure file system access

Configure file system access 3

Step #4: Review and create File System

Review and create File System 4

Step #5: Create 2 EC2 instance in the same region

Create 2 EC2 instance in the same region 5

wait for EC2 instances to be in running states

instances are ready 6

Step #6: Login to 1st EC2 Instance go to root user and make directory efs

Login to 1st EC2 Instance go to root user and make directory efs 7

Step #7: Using this Mount Command Mounting File system

Using this Mount Command Mounting File system 8

Run the above mount instructions commands.

mount efs on ec2 instance 9

Step #8: Change directory and Create File

Change directory and Create File 10

Step #9: Login to 2nd EC2 Instance go to root user, make directory and Use Mount Command (Step 7) Mounting File system

Login to 2nd EC2 Instance go to root user make directory and Use Mount Command 11

Step #10: Change directory and use ls –ltr  file and df –h

ls –ltr
df –h
Change directory and use ls –ltr file and df –h 12

Conclusion:

We have covered Mount EFS file system on EC2 Instance.

Related Articles:

How to Create IAM User in AWS Step by Step

How to Attach IAM Role to EC2 Instance using CLI

How to Create Ubuntu Instance in AWS [7 Steps]

How to Create Linux EC2 Instance in AWS

AWS Create EC2 Instance from Snapshot

How to connect to AWS EC2 Instance using MobaXTerm

How to Enable Password Authentication for AWS EC2

How to Connect EC2 Instance using Putty

How to Transfer files to AWS Instance using WinSCP [2 Steps]

Lambda Function to Start and Stop RDS Instance

How to Create AWS DocumentDB and Connect [3 steps]

How to Install MySQL 5.7 on Amazon Linux 2

How to Create Postgres Database in AWS and connect

Monitoring EC2 Instances using CloudWatch

How to Install AWS CLI on Amazon Linux

Reference:

Amazon Elastic File System official page

About DevOps Hint

DevOps Hint Founded in 2020 Community Site where you can find about How to Guides, Articles and Troubleshooting Tips for DevOps, SRE, Sysadmins and Developers.

2 thoughts on “How to Mount EFS on EC2 Instance”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Share via
Copy link