mjendza / aws-sandbox

This is my AWS Serverless stack. Build with CDK, NodeJS Lambda, DynamoDB storage.
Apache License 2.0
6 stars 1 forks source link

can't push event to DLQ failed processed by Lambda #37

Closed mjendza closed 2 years ago

mjendza commented 2 years ago

Base document: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-dlq.html

With the commit https://github.com/mjendza/aws-sandbox/pull/38/commits/77ea60c26f1cca2fd5d0727c8371462f76f5b9f0 we can see messages on the DLQ image

image image

mjendza commented 2 years ago

Checked policy for SQS shows that we don't have permission from other rules image

mjendza commented 2 years ago

with https://github.com/mjendza/aws-sandbox/pull/40/commits/b74b174166a704f392213f65be18b87165a1aee2

X-RAY trace shows:

3 retries (4 min limit)

image

with the error:

image

and summary:

image

https://stackoverflow.com/questions/55636686/lambda-returning-200-even-though-exception-was-thrown

mjendza commented 2 years ago

maybe this is a response https://stackoverflow.com/questions/67821070/aws-event-bridge-lambda-invocation/67821204#67821204

https://docs.aws.amazon.com/lambda/latest/dg/invocation-retries.html Event Bridge official doc https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html

mjendza commented 2 years ago

https://aws.amazon.com/blogs/compute/building-a-serverless-gif-generator-with-aws-lambda-part-2

mjendza commented 2 years ago

we need to use with the lambda async flow with the commit https://github.com/mjendza/aws-sandbox/pull/40/commits/1202bbb5ffcbb9a3abdf2c9bdc648c38647c7da3 image image