Skip to main content

AWS Slack Notifier

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

Installation

pip install aws-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 aws-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)

Source distribution for aws-slack-notifier 0.2.0
File Size Uploaded
aws_slack_notifier-0.2.0.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aws-slack-notifier 0.2.0
File Interpreter ABI Platform
aws_slack_notifier-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / aws_slack_notifier-0.2.0.tar.gz

Download URL aws_slack_notifier-0.2.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6550c15caab16d6229295f171615bfc2c584311b7811ff47b3e8b2ec03e57e97
BLAKE2b-256 checksum
How to use checksums
c7b2ac968c0a2857a838177d3d9c6a908554ecc0f860bccba22458a4d769361d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release files / aws_slack_notifier-0.2.0-py3-none-any.whl

Download URL aws_slack_notifier-0.2.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c2362e515964e14c97b585ab87c43f32bb2497288be62c138a3451179bb6ce1
BLAKE2b-256 checksum
How to use checksums
15013a5b87ed4cbbd75b84e4fce03d5b1b5d0a06791d43a250deda3c24bcaf9e
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.2.0 This release

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