Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 722 Bytes


Queries metadata address on AWS EC2 instances to help see what machine you hit behind an Elastic Load Balancer (ELB)

Demo Screenshot

Demo screenshot of page

Install required applications

apt-get install -y apache2 php5 awscli git

GIT code onto Ubuntu instance

cd /var/www/html && git clone 

Cron job to git source every 30 mins

##### m h  dom mon dow   command
job="*/30 * * * *  cd /var/www/html && git pull > /dev/null 2>&1"
(crontab -u ${USER} -l; echo "${job}" ) | crontab -u ${USER} -
crontab -l