Skip to content

Instantly share code, notes, and snippets.

View GoodMirek's full-sized avatar

Mirek Svoboda GoodMirek

  • Brno, Czech Republic
View GitHub Profile
@GoodMirek
GoodMirek / disable_troublesom_scaling_processes.py
Created August 23, 2017 08:59 — forked from simon-weber/disable_troublesom_scaling_processes.py
disable ASG scaling processes during CodeDeploy deploys
"""
Suspend an auto scaling group's scaling processes that can interfere with CodeDeploy deploys.
It assumes a single ASG per deployment group.
To use this:
* create a lambda function with this code, then hook up it up to an SNS topic that receives all deployment events (but not host events).
* attach that topic as a trigger in your deployment groups.
Unlike AWS's in-appspec approach, this supports arbitrary deploy concurrency.