Queries metadata address on AWS EC2 instances to help see what machine you hit behind an ELB
PHP CSS
Switch branches/tags
Nothing to show
Clone or download
Latest commit f01ccf7 Jul 3, 2017
Permalink
Failed to load latest commit information.
css Cleanup Jun 28, 2014
LICENSE Initial commit Jun 21, 2014
README.md Update README.md Jul 3, 2017
index.php Update index.php Jun 27, 2017

README.md

Overview

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 http://github.com/alphamusk/aws-metadata-php-page 

Cron job to git source every 30 mins

##### m h  dom mon dow   command
job="*/30 * * * *  cd /var/www/html && git pull http://github.com/alphamusk/aws-metadata-php-page.git > /dev/null 2>&1"
(crontab -u ${USER} -l; echo "${job}" ) | crontab -u ${USER} -
crontab -l