I am using a nodejs application and w.r.t this link :- http://blog.rowanudell.com/testing-serverless-functions-locally/.
I was able to call the lambda function locally with the command : $ lambda-local -f index.js on CLI.
Is there a way to trigger the same from inside a .js file of nodejs application?