Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jpdhas/cloudwatch_alarm_to_slack
A python library to send cloudwatch alarm events from sns to slack
https://github.com/jpdhas/cloudwatch_alarm_to_slack
cloudwatchalarms slack
Last synced: 15 days ago
JSON representation
A python library to send cloudwatch alarm events from sns to slack
- Host: GitHub
- URL: https://github.com/jpdhas/cloudwatch_alarm_to_slack
- Owner: jpdhas
- License: mit
- Created: 2020-10-30T15:33:29.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-08T17:27:48.000Z (almost 4 years ago)
- Last Synced: 2024-10-04T21:37:08.302Z (about 1 month ago)
- Topics: cloudwatchalarms, slack
- Language: Python
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
## Cloudwatch Alarm to Slack Notifier
[![pypi][pypi-image]][pypi-url]
[![pyup][pyup-image]][pyup-url]
[![python-version][python-version-image]][pypi-url]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 CloudwatchAlarmNotifierdef 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 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 :)
[pypi-image]: https://img.shields.io/pypi/v/cloudwatch-alarm-to-slack.svg
[pypi-url]: https://pypi.python.org/pypi/cloudwatch-alarm-to-slack
[pyup-image]: https://pyup.io/repos/github/jpdhas/cloudwatch_alarm_to_slack/shield.svg
[pyup-url]: https://pyup.io/repos/github/jpdhas/cloudwatch_alarm_to_slack/
[python-version-image]: https://img.shields.io/pypi/pyversions/cloudwatch-alarm-to-slack.svg