Last active
April 21, 2018 14:41
-
-
Save samuelcastle/8295712e0c859144fa0a8432b17056be to your computer and use it in GitHub Desktop.
This file contains 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
"Lab1": { | |
"Type": "AWS::EC2::Instance", | |
"Properties": { | |
"KeyName": { | |
"Ref": "KeyName" | |
}, | |
"ImageId": "ami-337be65c", | |
"InstanceType": "t2.small", | |
"NetworkInterfaces": [{ | |
"DeviceIndex": "0", | |
"AssociatePublicIpAddress": "true", | |
"DeleteOnTermination": "true", | |
"SubnetId": { | |
"Ref": "WmUspSubnet" | |
}, | |
"GroupSet": [{ | |
"Ref": "MySecurityGroup" | |
}] | |
}], | |
"UserData": { | |
"Fn::Base64": { | |
"Fn::Join": ["", [ | |
"#!/bin/bash -v\n", | |
"sudo adduser sag\n", | |
"sudo mkdir -p /opt/softwareag\n", | |
"sudo chown -R sag:sag /opt/softwareag\n", | |
"sudo yum install wget -y\n" | |
]] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment