Mount AWS EFS

16 September, 2021

Prerequisites

Mount EFS

$ yum install -y amazon-efs-utils
$ mkdir efs
$ sudo mount -t nfs -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport [EFS.DNS.ENDPOINT]:/ efs/

Replace DNS.EFS.ENDPOINT in the above script with your EFSs dns name. You can find this address from AWS-dashboard, or via aws cli.

The address can also constructed using this formula:

[efs-id].efs.[aws-region].amazonaws.com

Mount parameters are the recommended ones from AWS documentation: https://docs.aws.amazon.com/efs/latest/ug/wt1-test.html#wt1-mount-fs-and-test