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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: lambda_slack_notifier-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 5e3c2f4c19920c69289a40c13c24a2d9ad0ed18cd6ba83448ffec18ec9819a61
MD5 8f71bbb981bb3246583bd28b3ca3d054
BLAKE2b-256 88215ac0949cfc12501adfd6704025a4ce962ba23199896aa73d63050ff54393

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lambda_slack_notifier-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8bc0210f51a6c3d3950d8eac50b2424e6e56151af057097995b2ab667265af94
MD5 7d73c8b106bb094b6bdbdbd02a641a99
BLAKE2b-256 8ba12c12d6f2d27242061df3ff0c410e2da5fcf897b73e1097e70ff742967f7e

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