- Folder structure used consistently across our projects.
- serverless-pseudo-parameters plugin: Allows you to take advantage of CloudFormation Pseudo Parameters.
- serverless-bundle plugin: Bundler based on the serverless-webpack plugin - requires zero configuration and fully compatible with ES6/ES7 features.
sls create --name YOUR_PROJECT_NAME --template-url https://github.com/codingly-io/sls-base
cd YOUR_PROJECT_NAME
npm install
You are ready to go! sls deploy -v sls deploy -f createAuction -v (Deploy function only)
install middy npm install uuid npm install @middy/core @middy/http-event-normalizer @middy/http-error-handler @middy/http-json-body-parser npm install http-errors
tailing logs sls logs -f processAuctions -t
sls logs -f processAuctions
sls logs -f processAuctions --startTime 1m
sls logs -f processAuctions --startTime 1h
invoke functions, -l logs sls invoke -f processAuctions -l