Skip to content

Instantly share code, notes, and snippets.

@eMahtab
Last active December 18, 2017 16:15
Show Gist options
  • Save eMahtab/6325c9befeffd79ee67a552c5cabae46 to your computer and use it in GitHub Desktop.
Save eMahtab/6325c9befeffd79ee67a552c5cabae46 to your computer and use it in GitHub Desktop.
EC2 UserData
#!/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