Skip to content

Instantly share code, notes, and snippets.

@danilop
Created November 11, 2015 12:33
Show Gist options
  • Select an option

  • Save danilop/6d49e2b6507f748a00a9 to your computer and use it in GitHub Desktop.

Select an option

Save danilop/6d49e2b6507f748a00a9 to your computer and use it in GitHub Desktop.

Revisions

  1. danilop created this gist Nov 11, 2015.
    12 changes: 12 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #cloud-config
    package_upgrade: true
    packages:
    - nfs-utils
    - httpd
    - php
    runcmd:
    - echo "$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone).FILE_SYSTEM_ID.efs.us-west-2.amazonaws.com:/ /var/www/html/efs nfs4 defaults" >> /etc/fstab
    - mkdir /var/www/html/efs
    - mount -a
    - service httpd start
    - chkconfig httpd on