Skip to main content

Move files using Elastic File System (EFS)

  1. Create EFS filesystem.

  2. Add security group rule in EFS to allow NFS from EC2.

  3. Add security group rule in EC2 to allow NFS from EFS.

  4. Install EFS helper on EC2

    sudo yum install -y amazon-efs-utils
  5. Create the mount point

    mkdir -p /mnt/efs
  6. Mount EFS to the EC2 instance

    sudo mount -t efs -o tls <efs-filesystem-id>:/ /mnt/efs
  7. Copy files normally to /mnt/efs.

caution
  1. Do not delete/overwrite files in the /mnt/efs if not created by you.
  2. Try to archive folders directly into EFS instead of using the cp command. It will be faster to archive.