Open piniv opened 7 years ago
Since this tool is now abandonware, I have (loosely based on this script) implemented this feature on a replacement script for aws-ha-release, called aws-autoscaling-rollout. Please feel free to try it and provide any feedback/bugs in Github. Cheers!
[~]$ ./aws-ha-release.sh -a test-asg-2017-01-11 The list of Instances in Auto Scaling Group test-asg-2017-01-11 that will be terminated is below:
test-asg-2016-01-11 has a max-size of 9. In order to recycle instances max-size will be temporarily increased by 1 to max-size 10. test-asg-2016-01-11 is currently at 9 desired-capacity. aws-ha-release.sh will increase desired-capacity by 1 to desired-capacity 10. usage: aws [options] [ ...] [parameters]
To see help text, you can run:
aws help aws help
aws help
Unknown options: test-asg-2
aws autoscaling describe-auto-scaling-groups --auto-scaling-group-name test-asg-2016-01-11 --region us-east-1 --output text | grep LOADBALANCERNAMES | sed "s/LOADBALANCERNAMES[[:space:]]//"
test-asg-1 test-asg-2