Skip to content

Instantly share code, notes, and snippets.

@DanielGeek
Created August 9, 2021 03:34
Show Gist options
  • Save DanielGeek/e5b75e8f9d87a8a569fbf4ffdbc976f7 to your computer and use it in GitHub Desktop.
Save DanielGeek/e5b75e8f9d87a8a569fbf4ffdbc976f7 to your computer and use it in GitHub Desktop.
AMI Hands On
#!/bin/bash
# Use this for your user data (script from top to bottom)
# install httpd (Linux 2 version)
yum update -y
yum install -y httpd
systemctl start httpd
systemctl enable httpd
echo "<h1>Hello World from $(hostname -f)</h1>" > /var/www/html/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment