Skip to content

Instantly share code, notes, and snippets.

@james-ni
Last active January 2, 2020 11:14
Show Gist options
  • Save james-ni/200c660f424d85766e87c754e4667749 to your computer and use it in GitHub Desktop.
Save james-ni/200c660f424d85766e87c754e4667749 to your computer and use it in GitHub Desktop.
EC2 Bootstrap script
#!/bin/bash
yum update -y
yum install httpd -y
service httpd start
chkconfig httpd on
cd /var/www/html
echo "<html><h1>Hello! Welcome To My Webpage @ $HOSTNAME</h1></html>" > index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment