Skip to main content

A python library to send cloudwatch alarm events from sns to slack

Project description

Cloudwatch Alarm to Slack Notifier

A python library to send cloudwatch alarm notifications to Slack.


  • Install the package.
pip install cloudwatch_alarm_to_slack
  • It is expected this will be used as a part of a lambda.
from cloudwatch_alarm_to_slack.entrypoint import CloudwatchAlarmNotifier

def lambda_handler(event, context):
  • 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 :)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudwatch_alarm_to_slack-1.0.0.tar.gz (7.8 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page