serverless-ci-example
serverless-ci-example copied to clipboard
an example project showing CI for a serverless app with AWS API Gateway and AWS Lambda
How to continuously deploy a serverless app (WIP)
This repo comes along with a triology of blog posts about serverless ci/cd "Serverless Applications: continuous delivery with AWS Lambda and API Gateway:
- Part 1: Unit tests
- Part 2: Deploying Lambda
- Part 3: Coming soon
Using:
- AWS API Gateway
- AWS Lambda
- Apex
- Swagger
To run unit tests
mocha 'src/**/**.spec.js'
To deploy functions to AWS Lambda
cd src && apex deploy
To build a swagger file and deploy to API Gateway
python infra/api-gateway-deployer/src/__init__.py src/project.json