From d32ea3855a31197391c278e28a194ccb5cc78a76 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Mon, 22 May 2023 16:17:59 +0000 Subject: [PATCH] Add support for ASG launch event --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]