From cd02ea2139711c77d86d41c0c7e25aff83cfd311 Mon Sep 17 00:00:00 2001 From: Ryan Lucas Date: Fri, 28 Dec 2018 01:47:36 -0800 Subject: [PATCH] No longer parsing the SNS event as incoming JSON (#23) --- 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 c019858c..9b34e519 100644 --- a/functions/notify_slack.py +++ b/functions/notify_slack.py @@ -73,7 +73,7 @@ def notify_slack(message, region): def lambda_handler(event, context): - message = json.loads(event['Records'][0]['Sns']['Message']) + message = event['Records'][0]['Sns']['Message'] region = event['Records'][0]['Sns']['TopicArn'].split(":")[3] notify_slack(message, region)