Skip to content

Instantly share code, notes, and snippets.

@rishikksh20
Created September 9, 2019 19:20
Show Gist options
  • Save rishikksh20/17d34c1f59dccdc801e0c9ea1f103318 to your computer and use it in GitHub Desktop.
Save rishikksh20/17d34c1f59dccdc801e0c9ea1f103318 to your computer and use it in GitHub Desktop.
Add EFS to AWS ec2 instance
sudo apt-get install nfs-common
git clone https://github.com/aws/efs-utils.git
cd efs-utils
sudo apt-get update
sudo apt -y install binutils
./build-deb.sh
sudo apt -y install ./build/amazon-efs-utils*deb
cd ~
sudo mkdir /opt/efs
sudo mount -t nfs4 efs-ip:/ /opt/efs
sudo vi /etc/fstab
# Add following file => efs-ip:/ /opt/efs nfs defaults 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment