How to mount AWS EFS storage in existing AWS EC2 instance using amazon-efs-utils package?

How to mount AWS EFS storage in existing AWS EC2 instance using amazon-efs-utils package?

How to mount AWS EFS storage in existing AWS EC2 instance using amazon-efs-utils package?

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

Today we are going to discuss, how to mount AWS EFS storage in existing AWS EC2 instance using amazon-efs-utils package.

In the last blog post, we have shown how to create and mount AWS EFS storage to a new AWS EC2 instance automatically using EC2 user data. Today we learn how to mount an EFS storage manually to an existing EC2 instance using amazon-efs-utils package.

What is amazon-efs-utils package?

The amazon-efs-utils package is an open-source collection of Amazon EFS tools that is also referred to as the Amazon EFS client. The Amazon EFS client includes the EFS mount helper, which makes it easier to mount EFS file systems. Using the EFS client enables the ability to use Amazon CloudWatch to monitor an EFS file system’s mount status. You need to install the Amazon EFS client on an Amazon EC2 instance prior to mounting an EFS file system.

How to install amazon-efs-utils?

Install amazon-efs-utils on Amazon Linux, Red Hat Linux, CentOS, and similar OS:

Install amazon-efs-utils on Ubuntu, Debian, and similar OS:

Now you are ready to mount the EFS storage to your EC2 instance.

How to mount AWS EFS storage using amazon-efs-utils package?

You can also get the exact command from the AWS management console. Login to AWS management console and navigate to EFS, click “Attach” and it will display the command to attach the EFS storage.

How to mount AWS EFS storage in existing AWS EC2 instance using amazon-efs-utils package?

Hope you have enjoyed this article. To get more details in AWS EFS, please refer the below documentation

https://docs.aws.amazon.com/efs/index.html

Leave a Reply

Close Menu