- 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
# 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
- add a new event type in
src/constant.ts
underREGISTERED_EVENT_TYPE
enum.
- add a
<taskName>.task.ts
undersrc/tasks
followingsample.task.ts
with the new register event type as the Dependency Injection Token.
- add
export * from "./<taskName>.task.ts"
insrc/tasks/register.ts
- If you want to send a local event to test, please update
DetailType: "SAMPLE_EVENT"
inlocal/sendEvent.js
to the new registered event type.