项目作者: jpdhas

项目描述 :
A python library to send cloudwatch alarm events from sns to slack
高级语言: Python
项目地址: git://github.com/jpdhas/cloudwatch_alarm_to_slack.git
创建时间: 2020-10-30T15:33:29Z
项目社区:https://github.com/jpdhas/cloudwatch_alarm_to_slack

开源协议:MIT License

下载


Cloudwatch Alarm to Slack Notifier

pypi
pyup
python-version

A python library to send cloudwatch alarm notifications to Slack.

Usage

  • Install the package.
  1. pip install cloudwatch_alarm_to_slack
  • It is expected this will be used as a part of a lambda.
  1. from cloudwatch_alarm_to_slack.entrypoint import CloudwatchAlarmNotifier
  2. def lambda_handler(event, context):
  3. CloudwatchAlarmNotifier.handle_event(event)
  • It is required the following environment variable be set:

    • SLACK_BOT_TOKEN: Bot token of the slack app which should have the chat:write permissions.
    • SLACK_CHANNEL: ID of the Slack channel to which notification should be sent to.

If there is another usecase, please open an issue and let me know :)