please forgive me, I am totally new at Lambda and Node.
I am trying to replicate this git to order a pizza using an AWS IoT button.
My current code is:
<
In my case, i mentioned Handler as index.handler but my root filename is app.js. Changing this to index.js worked.
Also make sure the zip file has your index.js, node_modules and package.json directly.
Should be:
zip file --> index.js
package.json
node_modules
Not
zip file --> some_folder_name --> index.js
package.json
node_modules