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 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

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

simple_notification_lambda-0.1.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.

Simple_notification_Lambda-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file simple_notification_lambda-0.1.0.tar.gz.

File metadata

File hashes

Hashes for simple_notification_lambda-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b6834df674d7b02a15c34b3e0bfe3c7e3b834e27662f005fa6525fd8cd4e57f8
MD5 4e2a93e9f02c5529c828bb59c899d7ea
BLAKE2b-256 a3410734fae7be5e93bed74d6d3afdc4b6524acb3153a598c20c5d5844a05f42

See more details on using hashes here.

File details

Details for the file Simple_notification_Lambda-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Simple_notification_Lambda-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 329378ea143099a670cac1ccec8a286548878e89f99d9f9d2a7d8d4e37eac15d
MD5 8d4830040e3e473e46eb540f32d7abe9
BLAKE2b-256 f93699736302a436e3290002e6fc723f331592b9e5cdd0ba4c763fea1c57370e

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