AWS - Create EFS


Two EC2 instances in different availability zones


  1. Create an EFS with the following properties
  2. Set lifecycle management to 60 days
  3. The mode should match a use case of scaling to high levels of throughput and I/O operations per second
  4. Mount the EFS in both of your EC2 instances


  1. Go to EFS console
  2. Click on “Create file system”
  3. Create on “customize”
  4. Set lifecycle management to “60 days since last access”
  5. Set Performance mode to “MAX I/O” due to the requirement of “Scaling to high levels of throughput”
  6. Click on “Next”
  7. Choose security group to attach (if you don’t have any, create one and make sure it has a rule to allow NFS traffic) and click on “Next” until you are able to review and create it
  8. SSH into your EC2 instances
  9. Run sudo yum install -y amazon-efs-utils
  10. Run mkdir efs
  11. If you go to your EFS page and click on “Attach”, you can see what ways are there to mount your EFS on your instancess 1. The command to mount the EFS should be similar to sudo mount -t efs -o tls <EFS name>:/ efs - copy and paste it in your ec2 instance’s OS