Add support for ASG launch event
This commit is contained in:
parent
bb13496ac3
commit
d32ea3855a
2
app.py
2
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"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user