Follow these steps to run this example:
- Install all dependencies with:
npm install
- Prepare the bin folder with:
gulp
- Deploy it all to AWS with (make sure to setup AWS credentials first):
npm run serverless
-
Edit
script.ymland replaceMy_StackOutputs_ServiceEndpointwith theserverlessStack Outputsfor yourServiceEndpoint. -
Run tests
npm run perf-original
npm run perf-lambdaBin
- Compare results.
Follow these steps to customize this example:
-
Replace dependencies in
package.jsonto include your own dependencies. -
Change
gulpfile.jsto prepare yourbinfolder. -
Change
test-original.jsto invoke your own code (added topackage.jsonon step 1). -
Change
index.jsto invoke your code usinglambda-bininstead or your current binary deployment approach. -
Follow the steps under section
Running the Example.
Once you are done testing clean up your AWS account by running:
npm run cleanup