Created
March 5, 2020 10:15
-
-
Save AndrewBestbier/d1c6579a8df6b9746030a1f14c52de32 to your computer and use it in GitHub Desktop.
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 characters
FirstInstance: # (1) | |
Type: AWS::EC2::Instance # (2) | |
Properties: | |
ImageId: ami-0389b2a3c4948b1a0 # (3) | |
InstanceType: t2.micro # (4) | |
UserData: | |
Fn::Base64: | |
Fn::Sub: | # (5) | |
#!/bin/bash -xe | |
yum update -y | |
yum install -y httpd | |
systemctl start httpd | |
systemctl enable httpd | |
echo "Hello from $(hostname -f)" > /var/www/html/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment