Skip to content

Instantly share code, notes, and snippets.

@watchamcb
Last active August 29, 2015 14:23
Show Gist options
  • Save watchamcb/f798d361a8b74fb0a707 to your computer and use it in GitHub Desktop.
Save watchamcb/f798d361a8b74fb0a707 to your computer and use it in GitHub Desktop.
$ aws autoscaling describe-auto-scaling-groups --auto-scaling-group-names vpc-web-asg --query 'AutoScalingGroups[*].{ASG:AutoScalingGroupName,Desired:DesiredCapacity,Min:MinSize,Max:MaxSize}'
[
{
"Desired": 3,
"Max": 3,
"ASG": "vpc-web-asg",
"Min": 3
}
]
$ aws autoscaling update-auto-scaling-group --auto-scaling-group-name vpc-web-asg --min-size 0 --desired-capacity 0
$ aws autoscaling update-auto-scaling-group --auto-scaling-group-name vpc-web-asg --min-size 3 --desired-capacity 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment