There are times when you need to scale down and auto scaling group. To find out the current configuration of your auto scaling group, issue this command:
aws autoscaling describe-auto-scaling-groups
"AutoScalingGroupName": "reachforce-as-grp",
To scale down your configuration you can issue the commands to decrease the min and max size:
aws autoscaling update-auto-scaling-group --auto-scaling-group-name reachforce-as-grp --min-size 2
aws autoscaling update-auto-scaling-group --auto-scaling-group-name reachforce-as-grp --max-size 3
You will then see the instance go away on your AWS console.
aws autoscaling describe-auto-scaling-groups
"AutoScalingGroupName": "reachforce-as-grp",
To scale down your configuration you can issue the commands to decrease the min and max size:
aws autoscaling update-auto-scaling-group --auto-scaling-group-name reachforce-as-grp --min-size 2
aws autoscaling update-auto-scaling-group --auto-scaling-group-name reachforce-as-grp --max-size 3
You will then see the instance go away on your AWS console.
No comments:
Post a Comment