I have an auto scaling group in AWS so i can change stack size of instances created by CF. However when i want to reduce the stack it will terminate random instances in the stack.
I need to know if its possible to reduce stack size in CF but leave specific instances in the stack running using the scaling group?
"WebServerScaleUpPolicy" : {
"Type" : "AWS::AutoScaling::ScalingPolicy",
"Properties" : {
"AdjustmentType" : "ChangeInCapacity",
"AutoScalingGroupName" : { "Ref" : "AutoScalingServerGroup" },
"Cooldown" : "60",
"ScalingAdjustment" : "1"
}
},
"WebServerScaleDownPolicy" : {
"Type" : "AWS::AutoScaling::ScalingPolicy",
"Properties" : {
"AdjustmentType" : "ChangeInCapacity",
"AutoScalingGroupName" : { "Ref" : "AutoScalingServerGroup" },
"Cooldown" : "60",
"ScalingAdjustment" : "-1"
}
}
Any Help Appreciated.
