Hey there,
I have an autoscaling group that has my development environment on it, so that I don’t have to remember to shut it down it can scale down to 0 instances if unused. I currently have the command aliased to set the desired capacity to 1…
aws autoscaling set-desired-capacity --desired-capacity 1 --autonam…
I’d really like to be able to kick that up or down with a single command. I’m not great with the command line so I was wondering if I could get some help.
I’m working on a script that would query the autoscaling group and pull out the desired capacity, up it by 1/subtract 1 limit 0, and execute. My problem is the describe-autoscaling-groups returns json and I don’t know how to handle that in bash. Suggestions?
Related discussions: