Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "DevVPC": {
- "Type" : "AWS::EC2::VPC",
- "Description" : "Creation of DEV Vpc",
- "Properties" : {
- "CidrBlock" : "172.51.0.0/16",
- "EnableDnsSupport" : "true",
- "EnableDnsHostnames" : "true",
- "InstanceTenancy" : "dedicated"
- }
- },
- "SubnetOne": {
- "Type" : "AWS::EC2::Subnet",
- "Properties" : {
- "AvailabilityZone" : "us-west-2a",
- "CidrBlock" : "172.51.0.0/20",
- "MapPublicIpOnLaunch" : "true",
- "VpcId" : { "Ref" : "DevVPC" }
- }
- },
- "SubnetTwo": {
- "Type" : "AWS::EC2::Subnet",
- "Properties" : {
- "AvailabilityZone" : "us-west-2b",
- "CidrBlock" : "172.51.16.0/20",
- "MapPublicIpOnLaunch" : "true",
- "VpcId" : { "Ref" : "DevVPC" }
- }
- },
- "SubnetThree": {
- "Type" : "AWS::EC2::Subnet",
- "Properties" : {
- "AvailabilityZone" : "us-west-2c",
- "CidrBlock" : "172.51.32.0/20",
- "MapPublicIpOnLaunch" : "true",
- "VpcId" : { "Ref" : "DevVPC" }
- }
- },
- "DevBatchServersASG" : {
- "Type" : "AWS::AutoScaling::AutoScalingGroup",
- "Properties" : {
- "AvailabilityZones" : { "Fn::FindInMap" : [ "AvailabilityZoneMap", { "Ref" : "EnvType" }, "availabilityZone"] },
- "VPCZoneIdentifier" : [ { "Ref" : "SubnetOne", "Ref" : "SubnetTwo", "Ref" : "SubnetThree" } ],
- "LaunchConfigurationName" : { "Ref" : "BatchServerLaunchConfiguration" },
- "MinSize" : { "Fn::FindInMap" : [ "ScalingMin", { "Ref" : "EnvType" }, "Batch"] },
- "MaxSize" : { "Fn::FindInMap" : [ "ScalingMax", { "Ref" : "EnvType" }, "Batch"] },
- "TerminationPolicies" : [ "NewestInstance" ],
- "MetricsCollection": [
- {
- "Granularity": "1Minute",
- "Metrics": []
- }],
- "Tags" : [
- { "Key" : "Name", "Value" : { "Fn::Join" : [ "-", [ { "Ref" : "TeamName" }, { "Ref" : "EnvType" }, "Batch", { "Ref" : "BuildNumber" } ]] }, "PropagateAtLaunch" : "true" },
- { "Key" : "Environment", "Value" : "Batch", "PropagateAtLaunch" : "true" },
- { "Key" : "EnvironmentType", "Value" : { "Ref" : "EnvType" }, "PropagateAtLaunch" : "true" },
- { "Key" : "Team", "Value" : "Angelsense", "PropagateAtLaunch" : "true" }
- ]
- },
- "CreationPolicy" : {
- "AutoScalingCreationPolicy" : {
- "MinSuccessfulInstancesPercent" : "0"
- },
- "ResourceSignal" : {
- "Count": { "Fn::FindInMap" : [ "ScalingMin", { "Ref" : "EnvType" }, "Batch" ] },
- "Timeout": "PT10M"
- }
- }
- },
- "AvailabilityZoneMap" : {
- "DEV" : { "availabilityZone" : [ "us-west-2a", "us-west-2b", "us-west-2c" ] },
- "Load" : { "availabilityZone" : [ "us-west-2a", "us-west-2b", "us-west-2c" ] },
- "Staging" : { "availabilityZone" : [ "us-west-2a", "us-west-2b", "us-west-2c" ] },
- "Prod-US" : { "availabilityZone" : [ "us-west-2a", "us-west-2b", "us-west-2c" ] }
- },
- "AvailabilityZones" : { "Fn::FindInMap" : [ "AvailabilityZoneMap", { "Ref" : "EnvType" }, "availabilityZone"] },
Add Comment
Please, Sign In to add comment