From this blog post: Don’t get TechCrunched: performance testing for your HTTP APIs
Using AWS Lambda to run concurrent functions with Newman
Install dependencies
$ npm install
Run script from the command line
$ node loadTest.js
Your Postman collection can be exported as a JSON file and run from your local file system, as in this example here. Alternatively, you can use the Postman API to access the latest version of your collection. The second approach is recommended if you plan to update the collection more frequently.
The handler function is defined in index.js
if you're uploading this script to AWS Lambda. Zip up the required files and dependencies.
$ node run zip
Example script is taken from the Newman open source project.