Skip to content

Instantly share code, notes, and snippets.

@samuelcastle
Last active April 21, 2018 14:41
Show Gist options
  • Save samuelcastle/8295712e0c859144fa0a8432b17056be to your computer and use it in GitHub Desktop.
Save samuelcastle/8295712e0c859144fa0a8432b17056be to your computer and use it in GitHub Desktop.
"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