adding userscript

This commit is contained in:
hnaumann
2024-08-28 09:22:32 +02:00
parent 49adc24290
commit e5bc5195df

8
userdata.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
sudo yum update -y
sudo yum install -y httpd
sudo systemctl start httpd
sudo systemctl enable httpd
echo "<h1>Hello World</h1> <br> <h2> You successfully deployed your first EC2 instance using Terraform</h2>" | sudo tee /var/www/html/index.html
sudo systemctl restart httpd