Last active
December 18, 2017 16:15
-
-
Save eMahtab/6325c9befeffd79ee67a552c5cabae46 to your computer and use it in GitHub Desktop.
EC2 UserData
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum install httpd -y | |
chkconfig httpd on | |
service httpd start | |
echo "<html><h1>Hello there</h1></html>" > /var/www/html/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment