Created
September 21, 2016 08:00
-
-
Save florentb/d8ddbfbfbca4c10c1632d52f42753ad7 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
apt-get update | |
apt-get install -y nfs-common | |
echo "$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone).fs-0000000.efs.us-west-2.amazonaws.com:/ /efs/data nfs4 defaults" >> /etc/fstab | |
mkdir /efs | |
chmod go+rw /efs | |
mkdir /efs/data | |
chmod go+rw /efs/data | |
mount -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment