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

babakontheweb/recycle-auto-scaling-group

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 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.

This script depends on the boto package and must be installed.

pip install boto

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%