Mount AWS EFS
- Running ec2 instance (example is for Amazon linux 2)
- Ec2 instance needs network access to EFS, and has to be in the same region.
$ 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:
Mount parameters are the recommended ones from AWS documentation, but i can't be bothered to find the page at the time of writing.