Ömer Toraman
10/12/2021, 7:14 AM4XX
and and 5XX
status codes.
It’s possible that a runtime error thrown, or simply ran out of memory, or timed out. But at the end, it is still the case that APIGateway responds, in this case the statusCode would be some 5XX’s, so I would know that there is something wrong with the Lambda.
As I read AWS::Serverless::Function
resource properties, I see that there are two properties might be relevant, but I’m really not sure how they differ, and which one to be chosen.
What is really the difference between DeadLetterQueue
vs EventInvokeConfiguration
Ross Coundon
10/12/2021, 7:17 AMFrank
EventInvokeConfiguration
applies to async Lambda invoke, (ie. SNS, SQS, etc), API Gateway invoked the Lambda synchronously, so the option is irrelevant.
DeadLetterQueue
will send failed Lambda invocations to an SQS queue. @Ömer ToramanFrank
Ömer Toraman
10/12/2021, 7:23 PM2XX
statusCodes. So I guess I can go with only DeadLetterQueue, however, there are many clients, and hence for every client the DeadLetterQueue
will require to be configured.
The solution that I’m currently working on is putting an event on EventBridge
, consuming the even via SNS
, subscribing Lambda to topic and notifying the appropriate channel by calling MS Team’s Incoming WebHook.Ömer Toraman
10/12/2021, 7:24 PMDeadLetterQueue
is simpler 🤔Ross Coundon
10/12/2021, 7:30 PM