From a88d779297c02d00da7b38dbaac0cbe67d5eb7ee Mon Sep 17 00:00:00 2001 From: Adam Smith Date: Mon, 3 Jun 2019 11:50:13 +0100 Subject: [PATCH] Use the correct account id when notifying of alerts in another account --- functions/notify_slack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/notify_slack.py b/functions/notify_slack.py index 8218455..164ad42 100644 --- a/functions/notify_slack.py +++ b/functions/notify_slack.py @@ -51,7 +51,7 @@ def notify_slack(message): "color": alert_severity_color(message['detail']['severity']), "text": make_message_text( region=message['region'], - account=message['account'], + account=message['detail']['accountId'], severity=alert_severity_name(message["detail"]["severity"]), ), }