Add a webserver fast to an AWS EC2 instance with User Data

!/bin/bash

yum update -y
yum install -y httpd
service httpd start

You will have to update the security group to allow http traffic on port 80 – there is a default for it, and if you choose 0.0.0.0/0

Leave a Comment

Scroll to Top