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.1.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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for simple_notification_lambda-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c790f4dc0a73fbf772c81f54736f5bad61948e35f442e1af1b61dbdb40e0bd05
MD5 97fba617bdd14f8e12762c7e49fb2bf2
BLAKE2b-256 10896a08d87f14a74d2f01b75362ebf038f0f398eacd5c0a2b65577e2bb13b55

See more details on using hashes here.

File details

Details for the file Simple_Notification_Lambda-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Simple_Notification_Lambda-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fbd92ed2ea64890144e34eb676eb1ab22bb03af2fa0a6eb734b6bff3652ea736
MD5 83e02bcf39725cf6c3237ece90ddd14e
BLAKE2b-256 b345a6d30d39a537c22125d3941b42bc3009e7a61b30755c595bf0f7f1d26a47

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