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.yml
and replaceMy_StackOutputs_ServiceEndpoint
with theserverless
Stack Outputs
for yourServiceEndpoint
. -
Run tests
npm run perf-original
npm run perf-lambdaBin
- Compare results.
Follow these steps to customize this example:
-
Replace dependencies in
package.json
to include your own dependencies. -
Change
gulpfile.js
to prepare yourbin
folder. -
Change
test-original.js
to invoke your own code (added topackage.json
on step 1). -
Change
index.js
to invoke your code usinglambda-bin
instead 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