Skip to content

Commit

Permalink
No longer parsing the SNS event as incoming JSON (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryron01 authored and antonbabenko committed Dec 28, 2018
1 parent 6821de9 commit cd02ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/notify_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit cd02ea2

Please sign in to comment.