Last active
August 29, 2015 14:23
-
-
Save lantrix/9e1ddd6590b06e650c08 to your computer and use it in GitHub Desktop.
Scale Down/Up an AWS ASG permanently
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
| #No instances | |
| aws autoscaling update-auto-scaling-group --region ap-southeast-2 --max-size 0 --min-size 0 \ | |
| --auto-scaling-group-name myASGgroup | |
| aws autoscaling set-desired-capacity --region ap-southeast-2 --desired-capacity 0 \ | |
| --auto-scaling-group-name myASGgroup | |
| #Desired Instances | |
| aws autoscaling update-auto-scaling-group --region ap-southeast-2 --max-size 2 --min-size 1 \ | |
| --auto-scaling-group-name myASGgroup | |
| aws autoscaling set-desired-capacity --region ap-southeast-2 --desired-capacity 1 \ | |
| --auto-scaling-group-name myASGgroup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment