DEV Community

Discussion on: Http Request with AWS Lambda, Node.js 8.10, and Standard http library

Collapse
 
jsiesquen profile image
Juan Siesquen • Edited

Hi Scott,

I'm using the request-promise library but when try insert within exports.handler this aren't work... this is part of code, your support please, I'm novice yet:

How can implement this requests into lambda function?.... in my local test this work!

Or maybe should reemplace the requet-promise reference per a simple "http.request"?? Opinions please?

Thanks very much for advance.....

Regards

Collapse
 
jsiesquen profile image
Juan Siesquen • Edited

Hi Guys,

Finally, as I not know much about "request-promise" module, use "request-promise-native" instead. I have this model...

You already have an array with the results and the code looks synchronous.

I hope that is model can use for others verbs like post and patch. I'm in testing yet. Will I do well?