Created
June 15, 2018 03:03
-
-
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
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
{ | |
"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