Skip to main content

CDK construct to send Lambda detail errors to AWS SNS Topic.

Project description

Lambda Error SNS Sender

A simple solution to improve the CloudWatch alarm to receive Lambda error details by email. Available as CDK construct or as CloudFormation.

How does it work:

  • Lambda is subscribed to the SNS topic where you receive your alarms. There is a message body subscription filter that limits errors based on the Lambda error metric. If you defied your metic in some other way, not the default one, you will have to change that filter.
  • Lambda analyzes the message, finds a log of the failed Lambda, and queries the log for the period that the metic was configured, plus some additional safety time, so we do not miss that error message. It extracts just a number of errors that can fit in one SNS message. -Lambda sends errors to the same SNS you use for alerts. So apart from the common Alarm message, you will receive an additional one with error messages.

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-error-sns-sender-0.0.47.tar.gz (47.3 kB view details)

Uploaded Source

Built Distribution

lambda_error_sns_sender-0.0.47-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

Details for the file lambda-error-sns-sender-0.0.47.tar.gz.

File metadata

File hashes

Hashes for lambda-error-sns-sender-0.0.47.tar.gz
Algorithm Hash digest
SHA256 8696ebfe31a2f11c29e62f72cedbf56c0bbd43cffe006006b066ca3f00b242f8
MD5 0fe6f7c203c8d938aa8fed80f478d5df
BLAKE2b-256 38f656767e19a1e1353091f7830d9741b922cbc44c49cda02364d08d41414d7b

See more details on using hashes here.

File details

Details for the file lambda_error_sns_sender-0.0.47-py3-none-any.whl.

File metadata

File hashes

Hashes for lambda_error_sns_sender-0.0.47-py3-none-any.whl
Algorithm Hash digest
SHA256 36c3c590d7278deef16c8b3e888c024f1583ceec5215a7aa3787a4b3803cd63d
MD5 a73c3758b35eb04c51c8ad54ffc00188
BLAKE2b-256 e37b155ec65b9a4225ce976e1c483efc6a63129247ccf7623091ac8b8f556656

See more details on using hashes here.

Supported by

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