Mounting your Amazon EFS file system automatically - Amazon Elastic File System
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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.