Skip to main content

AWS Slack Notifier

A simple Python package to send Slack notifications via AWS Lambda.

Installation

pip install Simple_notification_Lambda

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 Simple-Notification-Lambda 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Simple-Notification-Lambda 0.1.1
File Size Uploaded
simple_notification_lambda-0.1.1.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Simple-Notification-Lambda 0.1.1
File Interpreter ABI Platform
Simple_Notification_Lambda-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / simple_notification_lambda-0.1.1.tar.gz

Download URL simple_notification_lambda-0.1.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c790f4dc0a73fbf772c81f54736f5bad61948e35f442e1af1b61dbdb40e0bd05
BLAKE2b-256 checksum
How to use checksums
10896a08d87f14a74d2f01b75362ebf038f0f398eacd5c0a2b65577e2bb13b55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release files / Simple_Notification_Lambda-0.1.1-py3-none-any.whl

Download URL Simple_Notification_Lambda-0.1.1-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fbd92ed2ea64890144e34eb676eb1ab22bb03af2fa0a6eb734b6bff3652ea736
BLAKE2b-256 checksum
How to use checksums
b345a6d30d39a537c22125d3941b42bc3009e7a61b30755c595bf0f7f1d26a47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page