Mount AWS EFS

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/

DNS.EFS.ENDPOINT needs to be replaced with your EFS dns name, which can be found from the EFS-dashboard, or via aws cli. You can also construct it with this formula:

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

Mount parameters are the recommended ones from AWS documentation, but i can't be bothered to find the page at the time of writing.