- bare clone this repo
git clone --bare ${THISREPO} - add a new stack in cloudformation, and use
pipeline_template.ymlas template. - when the stack reach
CREATE_COMPLETEyou can deletepipeline_template.yml. git initand upload codebase to freshly created repo (git remote add $repoetc etc)
whenever a commit is made to the master branch of the created repository, the pipeline will start.
- Commit on master
- Builds bundle zip on s3
- Builds via codebuild in container app
- Computes CFN changeset if any
- Execute Changeset
The app is a node js lambda example. It exposes two simple paths, you can GET /env and POST /test. Edit as needed. Note that you'll need to define the api endpoints in the template.yml as well if you want to see them exposed on the gateway. Or edit the template.yml to use a swagger file, and update that as you go.
Most of the code is adapted from AWS continuous deployment for serverless applications;