diff --git a/module/lambda/sns-to-slack.zip b/module/lambda/sns-to-slack.zip index a184bc3..9cf30e8 100644 Binary files a/module/lambda/sns-to-slack.zip and b/module/lambda/sns-to-slack.zip differ diff --git a/sns-to-slack/lambda_function.py b/sns-to-slack/lambda_function.py index 214ff58..0b359ec 100644 --- a/sns-to-slack/lambda_function.py +++ b/sns-to-slack/lambda_function.py @@ -142,6 +142,7 @@ def lambda_handler(event, context): 'INSUFFICIENT_DATA': 'warning', 'ALARM': 'danger' } + attachments = [{ 'fallback': json_msg, 'message': json_msg, @@ -154,6 +155,10 @@ def lambda_handler(event, context): "title": "Status", "value": json_msg['NewStateValue'], "short": True + }, { + "title": "Description", + "value": json_msg['AlarmDescription'], + "short": False }, { "title": "Reason", "value": json_msg['NewStateReason'],