Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save reecestart/57f5dfed4cbedef95d01b1749a74c1e5 to your computer and use it in GitHub Desktop.
Save reecestart/57f5dfed4cbedef95d01b1749a74c1e5 to your computer and use it in GitHub Desktop.
Creates a Launch Template and Auto Scaling Group with two t2.micro T2 Unlimited EC2 Instances
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "T2 Unlimited Launch Template",
"Outputs": {
"LaunchTemplate": {
"Value": {
"Ref": "TestLaunchTemplate"
}
}
},
"Resources": {
"TestLaunchTemplate": {
"Properties": {
"LaunchTemplateData": {
"ImageId": "ami-423bec20",
"InstanceType": "t2.micro",
"CreditSpecification": {"CpuCredits":"unlimited"}
},
"LaunchTemplateName": "TestT2Unlimitted"
},
"Type": "AWS::EC2::LaunchTemplate"
},
"WebServerGroup": {
"Properties": {
"AvailabilityZones": {
"Fn::GetAZs": ""
},
"LaunchTemplate": {
"LaunchTemplateId": {
"Ref": "TestLaunchTemplate"
},
"Version": "1"
},
"MaxSize": "2",
"MinSize": "2"
},
"Type": "AWS::AutoScaling::AutoScalingGroup"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment