Contains the CloudFormation infrastructure as code for a CICD Pipeline that deploys both infra and code changes to an API. The API consists of an API Gateway whose Stages are backed by different Lambda Versions & Aliases.
This project expects there to be 3 different accounts: a Dev, Prod, and Tools. The Tools account is where the CICD Pipeline resides in, which uses cross-account IAM roles to perform deployments in Dev & Prod.
- In Tools Account, deploy
tooling-prereq.yaml
with CodeBuildCondition parameter set to false. - In Dev Account, deploy
dev-prereq.yaml
. - In Tools Account, deploy
toolings.yaml
with CrossAccountCondition set to false. - Create a change set for the stack created in step “1” (
tooling-prereq.yaml
) with theCodeBuildCondition
parameter set totrue
. - Create a change set for the stack created in step “3” (
toolings.yaml
) withCrossAccountCondition
set totrue
.