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

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2022
  • 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.

ความคิดเห็น • 21

  • @jeevansharma8859
    @jeevansharma8859 10 หลายเดือนก่อน +4

    I searched many videos but your has solved my issue. Thanks a lot.

    • @GokceDB
      @GokceDB  10 หลายเดือนก่อน

      Glad it helped! :)

  • @prann2010
    @prann2010 หลายเดือนก่อน

    Short and precise

  • @christopherdeale4543
    @christopherdeale4543 11 หลายเดือนก่อน +1

    very useful with no extra fluff to confuse the issue. Thank you for the video.

    • @GokceDB
      @GokceDB  11 หลายเดือนก่อน

      Thank you! :)

  • @lftalora
    @lftalora 3 หลายเดือนก่อน

    Very helpful. Thank you som much! 🙂

  • @surajdebnath924
    @surajdebnath924 7 หลายเดือนก่อน

    Geat video buddy

  • @Sourabh1307
    @Sourabh1307 9 หลายเดือนก่อน +1

    Thanks a lot. Simple and useful tutorial! 👍

    • @GokceDB
      @GokceDB  9 หลายเดือนก่อน

      Glad it was helpful! :)

  • @lubnaarsh3221
    @lubnaarsh3221 ปีที่แล้ว +1

    Thanks a lot for upload this vedio it’s really helpful for me once again thanks

    • @GokceDB
      @GokceDB  ปีที่แล้ว

      Most welcome 😊

  • @abiolacomputing
    @abiolacomputing 7 หลายเดือนก่อน +1

    Thank you soo much for this video

    • @GokceDB
      @GokceDB  7 หลายเดือนก่อน

      :)

  • @vaibhav.v6403
    @vaibhav.v6403 ปีที่แล้ว +1

    Thank you so much 🙏

    • @GokceDB
      @GokceDB  ปีที่แล้ว +1

      Thank you! Don't forget to check out my latest videos to get even more value out of the channel. Thanks.

  • @cuongton5799
    @cuongton5799 9 หลายเดือนก่อน +1

    useful and explicit video

    • @GokceDB
      @GokceDB  9 หลายเดือนก่อน

      Glad you liked it! :)

  • @abhishekrijal5711
    @abhishekrijal5711 ปีที่แล้ว +1

    incredible

  • @user-jm1yo6yh9t
    @user-jm1yo6yh9t 10 หลายเดือนก่อน +1

    not working with Ubuntu the amazon-utiliz command

    • @GokceDB
      @GokceDB  10 หลายเดือนก่อน

      uh-oh, let me know if you find the solution :)