AWS Slack Notifier
A simple Python package to send Slack notifications via AWS Lambda.
Installation
pip install lambda-slack-notifier
Usage
from aws_slack_notifier import SlackNotifier
# Initialize the notifier
notifier = SlackNotifier(region_name='us-east-1')
# Send a notification
notifier.notify(
status="SUCCESS",
message="Job completed successfully",
client="MyGlueJob"
)
# Send a notification with error details
notifier.notify(
status="ERROR",
message="Job failed",
error="ValueError: Invalid input",
stackTrace="Full stack trace here",
client="MyGlueJob"
)
Requirements
- AWS Lambda function named 'trigger-slack-notification' that handles Slack messaging
- Appropriate AWS IAM permissions to invoke Lambda functions
- boto3 library
License
MIT License
Metadata
Release files for lambda-slack-notifier 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lambda_slack_notifier-0.2.0.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lambda_slack_notifier-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / lambda_slack_notifier-0.2.0.tar.gz
| Download URL | lambda_slack_notifier-0.2.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96747c07e410f9da6921e03b6611f5d7e882b7792cb7bda21f086b732f93e168
|
|
BLAKE2b-256 checksum How to use checksums |
8fb36c1a988ed4a61fd2cb3ca079246ebc7d68db38e9339f2a26e91bca0eea7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|
Release files / lambda_slack_notifier-0.2.0-py3-none-any.whl
| Download URL | lambda_slack_notifier-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc837884be9abf66957f33b8c9fabab1d15b085433d1a046c0f701eeb378076b
|
|
BLAKE2b-256 checksum How to use checksums |
8813642e9452ff9f8ada5798a471847a14d03217a28715720419dfc1d4068c69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|