wesley-accent / jenkins-deploy

0 stars 0 forks source link

user data for simple ec2 webserver #73

Open wesley-accent opened 1 year ago

wesley-accent commented 1 year ago
#!/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