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.
Usage
- 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):
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 thechat: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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cloudwatch_alarm_to_slack-1.0.0.tar.gz
.
File metadata
- Download URL: cloudwatch_alarm_to_slack-1.0.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c84c6fd4029843474f6b405cd4b99da99f356e905cbd634b87a5afba50642654 |
|
MD5 | dfd4625a8720e69d04e3fc1a94a2d2a4 |
|
BLAKE2b-256 | e0ee51471bdc0fc137e26c5213b77de96134824d25e919d516252679e9d4a5c6 |
File details
Details for the file cloudwatch_alarm_to_slack-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: cloudwatch_alarm_to_slack-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d238aa72576700f938ecbf9f3f4e3c73d73083b3b77c6868bc2630c67d511d64 |
|
MD5 | 4347a3857838daf95c74b946ad6db061 |
|
BLAKE2b-256 | 9e1cbef806150ddee8bee22266f968d94cd8c14e9ac4cac076e7effaa8ec28f3 |