All project notes

Engineering

Deployment stages and GitLab CI

SalesCandy used stage names to select AWS resources and used GitLab CI to deploy CandyNumber to development.

GitLab CI defined unit and end-to-end test stages followed by a manual job that ran Serverless Framework against the development stage.
Illustrative diagram

A Serverless Framework stage is a named deployment of a service. SugarRush Manual defaulted to dev and used the selected stage to resolve its deployment bucket, resource names, and CloudFormation outputs. Selecting a stage therefore also selected the resources the service was configured to use. CandyNumber’s GitLab pipeline shows how the team targeted a stage from CI. It defined unit and end-to-end test stages and a manual deploy job that ran sls deploy --stage dev.

SalesCandy Git evidence — SugarRush/manual at cb0b835 (21 October 2022), serverless.yml. SugarRush/CandyNumber at 1ae4995 (25 October 2019), .gitlab-ci.yml. Deploying to AWS