-
-
Save scalixte-mdsol/fe31f9a71a63fd7cf7c34d5f05e884ec to your computer and use it in GitHub Desktop.
Revisions
-
mikepfeiffer created this gist
Jan 27, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/bin/bash yum update -y yum install -y httpd instanceId=$(curl http://169.254.169.254/latest/meta-data/instance-id) echo "<h1>Hello World from $instanceId</h1>" > /var/www/html/index.html systemctl start httpd systemctl enable httpd