Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we attach SNS notification when any aws lambda function gets timed-out?

I need to send notification mail if my lambda function gets any error or got timed out. I had handled errors programmatically in function code but unable to notify when function gets timed out. I am ready with my SNS topic and all.

Can anyone please help regarding this.

like image 628
dattaprasad mundada Avatar asked Oct 27 '25 03:10

dattaprasad mundada


1 Answers

Yes, You can provide SNS as the DLQ(Dead Letter Queue) Resource for your asynchronous Lambda functions (where the event sources are not stream based).

On failures like timeout, resource constraints, endpoint access issues, the exception thrown by the lambda function will be sent to the configured DLQ.

like image 88
franklinsijo Avatar answered Oct 29 '25 17:10

franklinsijo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!