Created
September 9, 2019 19:20
-
-
Save rishikksh20/17d34c1f59dccdc801e0c9ea1f103318 to your computer and use it in GitHub Desktop.
Add EFS to AWS ec2 instance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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