Skip to content

Python script to recycle ec2 instances in an Amazon (AWS) auto-scaling group

Notifications You must be signed in to change notification settings

ldalamagas/recycle-auto-scaling-group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

recycle-auto-scaling-group

Python script to recycle ec2 instances in an Amazon (AWS) auto-scaling group using boto.

usage: recycle_autoscale_group [] example: recycle_autoscale_group my-application-autoscale-group your-application-autoscale-group

This script temporarily increases a group's desired_capacity and max_size, recycles (terminates) ec2 instances in the group one by one while keeping the number of 'InService' instances steady. As soon as recycling is complete group configuration is set to its previous values.

About

Python script to recycle ec2 instances in an Amazon (AWS) auto-scaling group

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages