Amazon Elastic File System (Amazon EFS) provides scalable file storage for use with Amazon EC2 instances in the AWS Cloud
In AWS console click EFS under storage
Click create file system
Select availability zone when you want this EFS to spread to
Set name and performance mode
Click Amazon EC2 mount instructions
Because i’m using Amazon image, only one command i need to use (the last one)-copy it to clipboard
VM to which we want to attach EFS,needs to be member of default security group
click on VM-Actions-Networking-Change Security Groups
Click on default one,in VM create new folder (mount point) and mount EFS
mkdir /mounts sudo mount -t nfs4 -nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 fs-f2dc103b.efs.eu-west-1.amazonaws.com:/ /mount findmnt | grep '/mount'
[…] Source: Creating Amazon Elastic File System […]
LikeLike