An open API service indexing awesome lists of open source software.

https://github.com/geekeast/create-typescript-lambda-orchestrator

The template for creating a lambda orchestrator which consume events from AWS SQS
https://github.com/geekeast/create-typescript-lambda-orchestrator

eventbridge lambda localstack microservice orchestrator sqs

Last synced: 7 months ago
JSON representation

The template for creating a lambda orchestrator which consume events from AWS SQS

Awesome Lists containing this project

README

          

# create-typescript-lambda-orchestrator

no image found

## Customize
- search `create-typescript-lambda-orchestrator` globally and replace with whatever you like as your **project name**
- search `lambda-orchestrator-queue` globally and replace with whatever you like as local **queue name**

## Start
```sh
# install deps
pnpm install
# start localstack
pnpm stack up
# start serverless (lambda function)
pnpm dev
# send a test event to eventBus
pnpm stack event:send
```

## Register Tasks
- add a new event type in `src/constant.ts` under `REGISTERED_EVENT_TYPE` enum.

no image found

- add a `.task.ts` under `src/tasks` following `sample.task.ts` with the new register event type as the Dependency Injection **Token**.

no image found

- add `export * from "./.task.ts"` in `src/tasks/register.ts`

no image found

- If you want to send a local event to test, please update `DetailType: "SAMPLE_EVENT"` in `local/sendEvent.js` to the new registered event type.

no image found