Skip to content

Instantly share code, notes, and snippets.

@florentb
Created September 21, 2016 08:00
Show Gist options
  • Save florentb/d8ddbfbfbca4c10c1632d52f42753ad7 to your computer and use it in GitHub Desktop.
Save florentb/d8ddbfbfbca4c10c1632d52f42753ad7 to your computer and use it in GitHub Desktop.
#!/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