How To: Mount EFS To Multiple EC2 (4 Min) | AWS Elastic File System

  Рет қаралды 9,067

Gokce DB

Gokce DB

Күн бұрын

In this tutorial, you'll learn how to mount EFS file system to multiple EC2 Instances in AWS.
-
Facebook: / gokcedbsql
-
Video Transcript
-
Hi guys, this is Abhi from Gokcedb. In this video, you're going to learn how to mount an EFS file system on multiple ec2 IN AWS. Let's start by navigating to the ec2 dashboard and then clicking on security groups.
Click on create Security Group then give it a name and a description. I'm going to call it my web server Security Group and add an inbound rule for SSH from anywhere. Hit create then create one more Security Group for the EFS file system.
Here, I'm going to add an inbound rule for NFS from my web security group that we just created. Hit create then navigate to the EFS service. Click on create file system then give it a name.
Click on customize. Here, I'm going to disable automatic backups and transition to IA. I'm going to disable encryption and leave everything else to default then hit next.
For Mount targets, I'm going to select two availability zones US East 1A and 1B. For security groups, I'm going to select my EFS Security Group then hit next create. Let's go back to the ec2 dashboard and launch two instances.
Give your instance a name, select an Ami then click on edit in network settings. I'm going to select US East 1A availability Zone and my web Security Group then hit launch. Hit refresh and you should see my server 1A in a pending state.
Let's launch one more ec2 instance called my server 1B in US East 1B availability Zone. Now, let's connect to my server 1A using instance connect and install the Amazon EFS utils package. Use the mkdir EFS command to make the EFS directory then navigate to the EFS service.
Click on your file system then hit attach. Copy the EFS Mount helper command and paste it into the terminal. Replace EFS with Slash EFS then hit enter.
Give it a few seconds then run the DF hyphen H command and confirm that you see the slash EFS mount. Use the CD command to go inside the EFS folder then create a test directory. Leverage The CH's own command to change the ownership of the test directory to ec2-user.
Now, you should be able to go inside the test folder and create a new file. Say test.txt without the Sudo command. Next, let's connect to my server 1B using instance connect and install the Amazon EFS utils package.
Just like before, create the EFS folder and mount it using the mount EFS helper command. Now, if you go inside the EFS folder, you will find the test directory and the test file that we created from my server 1A. There you have it.
Make sure you like, subscribe, and turn on the notification bell. Until next time.

Пікірлер: 24
@jeevansharma8859
@jeevansharma8859 Жыл бұрын
I searched many videos but your has solved my issue. Thanks a lot.
@GokceDB
@GokceDB Жыл бұрын
Glad it helped! :)
@christopherdeale4543
@christopherdeale4543 Жыл бұрын
very useful with no extra fluff to confuse the issue. Thank you for the video.
@GokceDB
@GokceDB Жыл бұрын
Thank you! :)
@haibuixuan4067
@haibuixuan4067 5 ай бұрын
Awesome, best tutorial on internet
@Sourabh1307
@Sourabh1307 Жыл бұрын
Thanks a lot. Simple and useful tutorial! 👍
@GokceDB
@GokceDB Жыл бұрын
Glad it was helpful! :)
@pradeephmkumar
@pradeephmkumar 4 ай бұрын
Thank You
@cuongton5799
@cuongton5799 Жыл бұрын
useful and explicit video
@GokceDB
@GokceDB Жыл бұрын
Glad you liked it! :)
@lftalora
@lftalora 10 ай бұрын
Very helpful. Thank you som much! 🙂
@lubnaarsh3221
@lubnaarsh3221 Жыл бұрын
Thanks a lot for upload this vedio it’s really helpful for me once again thanks
@GokceDB
@GokceDB Жыл бұрын
Most welcome 😊
@prann2010
@prann2010 8 ай бұрын
Short and precise
@abiolacomputing
@abiolacomputing Жыл бұрын
Thank you soo much for this video
@GokceDB
@GokceDB Жыл бұрын
:)
@vaibhav.v6403
@vaibhav.v6403 Жыл бұрын
Thank you so much 🙏
@GokceDB
@GokceDB Жыл бұрын
Thank you! Don't forget to check out my latest videos to get even more value out of the channel. Thanks.
@surajdebnath924
@surajdebnath924 Жыл бұрын
Geat video buddy
@abhishekrijal5711
@abhishekrijal5711 2 жыл бұрын
incredible
@GokceDB
@GokceDB 2 жыл бұрын
:)
@prajjwaltkhonde971
@prajjwaltkhonde971 29 күн бұрын
how I can connect efs in cross-region. Say for example my efs is in us-east1 and my ec2 is in us-east2 region
@RiteshKumar-l5x4v
@RiteshKumar-l5x4v Жыл бұрын
not working with Ubuntu the amazon-utiliz command
@GokceDB
@GokceDB Жыл бұрын
uh-oh, let me know if you find the solution :)
GraphRAG: The Marriage of Knowledge Graphs and RAG: Emil Eifrem
19:15
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
IBM PS/2 Repair & restoration (Type 1)
44:40
Epictronics
Рет қаралды 6 М.
Kerberos Authentication Explained | A deep dive
16:52
Destination Certification
Рет қаралды 373 М.
Amazon EFS file system creation, mounting & settings
8:16
Amazon Web Services
Рет қаралды 85 М.
AWS EC2 Instance types Explained | AWS SAA C03
8:51
Cloud Champ
Рет қаралды 5 М.
How GitHub's Database Self-Destructed in 43 Seconds
12:04
Kevin Fang
Рет қаралды 1 МЛН
Apache vs NGINX
7:53
IBM Technology
Рет қаралды 322 М.
How to SSH into Amazon EC2 Machine | SSH AWS EC2
10:27
Piyush Garg
Рет қаралды 32 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН