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

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

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

aws_slack_notifier-0.2.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aws_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 aws_slack_notifier-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6550c15caab16d6229295f171615bfc2c584311b7811ff47b3e8b2ec03e57e97
MD5 92e12f49fa674b51020a0dbe9010cc09
BLAKE2b-256 c7b2ac968c0a2857a838177d3d9c6a908554ecc0f860bccba22458a4d769361d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_slack_notifier-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c2362e515964e14c97b585ab87c43f32bb2497288be62c138a3451179bb6ce1
MD5 3c9d6512bf9d0b1caa6b273da76df123
BLAKE2b-256 15013a5b87ed4cbbd75b84e4fce03d5b1b5d0a06791d43a250deda3c24bcaf9e

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