Fork me on GitHub
#aws-lambda
<
2017-10-16
>
juliobarros20:10:46

Anybody have good tips and tools for developing lambda functions locally?

lucasbradstreet20:10:55

@juliobarros during my small amount of experimenting, I had success with https://serverless.com/ and using its ability to invoke the hooks locally

juliobarros20:10:35

Thanks @lucasbradstreet I think I’m going to use their YAML. It seems easier/better than SAM right now. Do you mean invoking the functions on aws? I was hoping someone had created a ring adapter or pattern or blog post so I could develop locally and then push up to aws.

lucasbradstreet20:10:59

I meant invoking the function locally - no communication to aws required.

juliobarros20:10:11

Oh, thats interesting. I may be mission something though … or I forgot to say I want to invoke it through the API gateway so need/want something to mimic that. Does the serverless framework do that?

lucasbradstreet20:10:07

Ah, I’m not sure if it does that. I think it just calls the handler directly with your event

lucasbradstreet20:10:16

So you have to make sure to synthesize the event properly

lucasbradstreet20:10:21

It may support something similar though.

lucasbradstreet20:10:31

I don’t know it / haven’t used lambda enough to say.

juliobarros20:10:40

Ok. Thanks. I just wanted to make sure I wasn’t missing anything obvious.