In creating a new function, I have zipped up the index.js and node_modules that I need for the project. The modules include the alexa-sdk and twilio. My index.js has an export.handler function.
Two questions
1) Do I have to have a package.json file in the upload?
2) Does the upload file name have to match the configuration handler?
After the upload I cannot use the inline code editor to work on the index.js file, it says it is too large.
node_modules/aws-sdk, as lambda will use it's own version anyway. This saves about 5MB zipped. This is my go to zip command:zip -r ../skill.zip * --exclude '*.DS_Store*' '*.git*' '*.vscode*' 'node_modules/aws-sdk/*'