Skip to main content

A package to send Slack notifications via AWS Lambda

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lambda_slack_notifier-0.2.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lambda_slack_notifier-0.2.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file lambda_slack_notifier-0.2.0.tar.gz.

File metadata

  • Download URL: lambda_slack_notifier-0.2.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for lambda_slack_notifier-0.2.0.tar.gz
Algorithm Hash digest
SHA256 96747c07e410f9da6921e03b6611f5d7e882b7792cb7bda21f086b732f93e168
MD5 029dd67c01adb96e93a748e6a7c4148e
BLAKE2b-256 8fb36c1a988ed4a61fd2cb3ca079246ebc7d68db38e9339f2a26e91bca0eea7a

See more details on using hashes here.

File details

Details for the file lambda_slack_notifier-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lambda_slack_notifier-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc837884be9abf66957f33b8c9fabab1d15b085433d1a046c0f701eeb378076b
MD5 85e13a6ef4d384bc666a5ed2bc2abf29
BLAKE2b-256 8813642e9452ff9f8ada5798a471847a14d03217a28715720419dfc1d4068c69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page