Subscribe to my channel for FREE Here:
/ @bytenovus
Follow me on GitHub: https://github.com/Viyaan
Code on User Data
#!/bin/bash
yum install -y httpd
service httpd start
chkconfig httpd
echo "welcome \n" > /var/www/html/index.html
hostname > /var/www/html/index.html