#!/bin/bash
sudo yum update -y
sudo yum install -y httpd
sudo systemctl start httpd
sudo systemctl enable httpd
echo "
Hello World
You successfully deployed your first EC2 instance using Terraform
" | sudo tee /var/www/html/index.html
sudo systemctl restart httpd