diff --git a/app.py b/app.py index 9872498..7323802 100644 --- a/app.py +++ b/app.py @@ -251,7 +251,7 @@ def handler(event, context): msg["ElastiCache:NodeReplacementScheduled"], msg["Start Time"], msg["End Time"]) # Basic ASG events - elif "Origin" in msg and msg["Origin"] == "AutoScalingGroup": + elif "Event" in msg and msg["Event"] in ["autoscaling:EC2_INSTANCE_TERMINATE", "autoscaling:EC2_INSTANCE_LAUNCH"]: title = msg["Description"] body = msg["Cause"]