- Some of my initial experiments with Serverless Framework on AWS
- Supports unit testing and debugging with vs code
Install Serverless Framework
npm install -g serverless
Install NPM modules
npm install
Obtain temporary AWS credentials for UoA account: AWS Temporary Credentials for CLI
- Inside vs code hit
F5
and selectDebug
as config file. Attach breakpoints as desired.
To run run of tests simply execute
npm test
To run tests and have them watch your files for changes:
npm exec testw
serverless deploy
Note: You can optionally pass a --stage STAGE_NAME
flag (default dev
).