Mounting your Amazon EFS file system automatically
You can configure an Amazon EC2 instance to automatically mount an EFS file system when it reboots using the EFS mount helper or NFS.
Using the EFS mount helper:
Attach an EFS file system when you create a new EC2 Linux instance using the EC2 Launch Instance Wizard.
Update the EC2
/etc/fstab
file with an entry for the EFS file system.
Using NFS without the EFS mount helper to update the EC2
/etc/fstab
file, for support EC2 Linux and Mac instances.
Note
The EFS mount helper does not support automatic mounting on Amazon EC2 Mac instances running macOS Big Sur or Monterey. Instead, you can use NFS to configure the /etc/fstab file on an EC2 Mac instance to automatically mount an EFS file system.