ashiina / lambda-local

Commandline tool to run Amazon Lambda function on local machines.
MIT License
739 stars 101 forks source link

support for cloudwatch events/recurring events? #143

Open aniham opened 6 years ago

aniham commented 6 years ago

Are there plans to expand this to run on a cadence like it would with cloudwatch events in prod? Basically call again with setTimeout rather than process.exit() here:

https://github.com/ashiina/lambda-local/blob/develop/bin/lambda-local#L146

gpotter2 commented 6 years ago

Sure, Do you have any docs explaining this ?

Thanks !

aniham commented 6 years ago

I just meant this:

https://docs.aws.amazon.com/lambda/latest/dg/invoking-lambda-function.html#supported-event-source-cloudwatch-events

nothing too fancy :)

I'm happy to submit a PR (shouldn't take too long) and discuss further after!

gpotter2 commented 6 years ago

I'm happy to submit a PR (shouldn't take too long) and discuss further after!

It would be really great ! Also, feel free to add a test :)

Thanks !