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.37.tar.gz (48.9 kB view details)

Uploaded Source

Built Distribution

lambda_error_sns_sender-0.0.37-py3-none-any.whl (47.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for lambda-error-sns-sender-0.0.37.tar.gz
Algorithm Hash digest
SHA256 40b3b630673c19bc616d87e022791327b1da7cd14906e7893a796b646a2f1ff0
MD5 0a6031bd8a4806d8f93f3e469aa2b11d
BLAKE2b-256 eb934d66a1ee52e336b9346250f394164aac51e50bef160142e64e4a306d70c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lambda_error_sns_sender-0.0.37-py3-none-any.whl
Algorithm Hash digest
SHA256 625da8bb542d2a8c23a502fb1f6f43b21e2890b67e2e2bfa0eb827308117b878
MD5 0d226b45d11cd377893d139e64b52217
BLAKE2b-256 423db85256dfa57353c751fa4238702c1a89930f1480beec138f623deddd42f3

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