Continuous Deployment example for the Serverless Framework
sls project create
- create project with inital dev stagesls stage create
- create prod stagesls function create books/get
- create books get function
Result Creates 2 cloud formation stacks, dev and prod.
sls project init -c
sls meta sync
sls resources deploy
- deploy cloud formationaws s3 cp $LOCAL_META_VAR_FILE $S3_META_VAR_FILE
- sync metadatasls function deploy -a
- deploy functionssls event deploy -a
- deploy eventssls endpoint deploy -a
- deploy api gateway endpoints
source setup-deploy-envvars.sh
.\deploy.sh
sls deploy