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
Step #2: Open the Amazon Elastic File System and Create File System
Step #3: Configure file system access
Step #4: Review and create File System
Step #5: Create 2 EC2 instance in the same region
wait for EC2 instances to be in running states
Step #6: Login to 1st EC2 Instance go to root user and make directory efs
Step #7: Using this Mount Command Mounting File system
Run the above mount instructions commands.
Step #8: Change directory and Create File
Step #9: Login to 2nd EC2 Instance go to root user, make directory and Use Mount Command (Step 7) Mounting File system
Step #10: Change directory and use ls –ltr file and df –h
ls –ltr
df –h
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:
good tutorial,
1. can we mount single efs volume on different ec2
Thanks for your comment. Please follow amazon official link for same.
https://docs.aws.amazon.com/efs/latest/ug/wt1-test.html