# lambda-songwhip-presaves-test

A test/simulation lambda for the presaves execution pipeline.

## Overview

This Lambda consumes SQS messages and simulates presave task processing with a 300ms delay.
It can also simulate errors when the service data ID starts with `error:<statusCode>`.

## Local development
To run this Lambda locally, you can use the `dev` script:
First, make sure to set up your environment variables in the `.env` file. You can use the `.env.shadow` file as a template.

Then, run the following command:

```bash
pnpm dev
```

This will start localstack and the Lambda function. Providing a UI for testing the Lambda function with SQS messages. You can send test messages to the SQS queue to see how the Lambda function processes them.
