Add error handling and deadletter queue using serverless-step-function

I’m using serverless-step-function plugin to define my step-functions in serverless.

Lambdas support the functionality of defining a DLQ in SQS or SNS in case of max-retries errors etc.
I was wondering if there is a way to do that [add error handling with the addition of enqueuing to a DLQ in SQS] using the serverless-step-function.

I came across this plugin serverless-plugin-lambda-dead-letter that allows you to do that.
I just wanted to check with the community if there is any other way of achieving that without using an extra plugin.

Thanks,
Nico

Step Functions themselves have the capability to error handle. Everything from your own custom retry schemes to other steps in your State Machine to capture and process errors. There’s a lot of detail so they have a very complete document right here: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-error-handling.html

1 Like