dvsa / dvsa-lambda-starter

A starting pattern for AWS lambda in Typescript
MIT License
5 stars 4 forks source link

[Feature Request]: Add new lambda triggers #82

Open meridiani opened 1 year ago

meridiani commented 1 year ago

Contact Details

No response

Feature Request

I tried to use the lambda starter for a "platform type" lambda but ran into diffculty in the development process because the starter currently assumes that all lambdas should be triggered from an API gateway.

In my case I needed a lambda that is triggered by a cloudwatch event.

It would be really nice to be able to stand up a lambda locally regardless of the trigger type.

Maybe this needs to be a separate lambda-starter though?

Are you currently using a workaround / alternative solution instead?

not currently.

sdh100shaun commented 1 year ago

@meridiani did this not work for you https://github.com/dvsa/dvsa-lambda-starter/blob/main/src/handler/cloudWatchEvent.ts