Skip to content

Instantly share code, notes, and snippets.

@viannaandreBR
Forked from nktstudios/ec2-user-data.txt
Created July 16, 2021 21:27
Show Gist options
  • Save viannaandreBR/23562e446a32f5e419b71310678f6135 to your computer and use it in GitHub Desktop.
Save viannaandreBR/23562e446a32f5e419b71310678f6135 to your computer and use it in GitHub Desktop.
AWS Certificate Manager Tutorial
#!/bin/bash
# update the machine
yum update -y
# install http
yum install -y httpd.x86_64
# start the service
systemctl start httpd.service
# enable service across reboots
systemctl enable httpd.service
# create the html page to render
echo "<h1>Hello World from NKT Studios!</h1>" >/var/www/html/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment