Useful contents: 1. User-data for two different EC2 Instances
!/bin/bash
yum install httpd -y
service httpd start
chkconfig httpd on
mkdir /var/www/html/bye
echo "Bye from ec2" > /var/www/html/bye/index.html
echo "Configured successfully"
!/bin/bash
yum install httpd -y
service httpd start
chkconfig httpd on
mkdir /var/www/html/hi
echo "Bye from ec2" > /var/www/html/bye/index.html
echo "Configured successfully"