Whenever I try to include Twilio module in my Lambda Function, it gives out an error:
"errorMessage": "Cannot find module 'twilio'"
The error is on line:
var client = require('twilio')(accountSid, authToken);
Can anyone help me out with the way we can include modules?
node_modulesfolder with your uploaded zip package? I have a separate directory with my lambda node packages and lambda function files. A common gotcha is zipping the directory and not the contents of the directory. Sozip -r twilioLambda.zip .when in the directory that holds your lambda function and node modules.