aws-lambda

2017-10-16T20:29:46.000175Z

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

lucasbradstreet 2017-10-16T20:30:55.000586Z

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

2017-10-16T20:32:35.000596Z

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.

lucasbradstreet 2017-10-16T20:32:59.000400Z

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

2017-10-16T20:35:11.000097Z

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?

lucasbradstreet 2017-10-16T20:36:07.000015Z

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

lucasbradstreet 2017-10-16T20:36:16.000025Z

So you have to make sure to synthesize the event properly

lucasbradstreet 2017-10-16T20:36:21.000246Z

It may support something similar though.

lucasbradstreet 2017-10-16T20:36:31.000118Z

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

2017-10-16T20:42:40.000023Z

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