Last active
December 19, 2017 10:08
-
-
Save clarencetw/bde93b2074857daca831480977582eb7 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
Content-Type: multipart/mixed; boundary="==BOUNDARY==" | |
MIME-Version: 1.0 | |
--==BOUNDARY== | |
Content-Type: text/cloud-boothook; charset="us-ascii" | |
# Install nfs-utils | |
cloud-init-per once yum_update yum update -y | |
cloud-init-per once install_nfs_utils yum install -y nfs-utils | |
# Create /efs folder | |
cloud-init-per once mkdir_efs mkdir /efs | |
# Mount /efs | |
cloud-init-per once mount_efs echo -e 'fs-abcd1234.efs.us-east-1.amazonaws.com:/ /efs nfs4 nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 0 0' >> /etc/fstab | |
mount -a | |
--==BOUNDARY== | |
Content-Type: text/x-shellscript; charset="us-ascii" | |
#!/bin/bash | |
# Set any ECS agent configuration options | |
echo "ECS_CLUSTER=default" >> /etc/ecs/ecs.config | |
--==BOUNDARY==-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment