lambda-local icon indicating copy to clipboard operation
lambda-local copied to clipboard

support for cloudwatch events/recurring events?

Open aniham opened this issue 6 years ago • 3 comments

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

aniham avatar Apr 17 '18 15:04 aniham

Sure, Do you have any docs explaining this ?

Thanks !

gpotter2 avatar Apr 17 '18 21:04 gpotter2

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!

aniham avatar Apr 18 '18 13:04 aniham

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 !

gpotter2 avatar Apr 18 '18 14:04 gpotter2