Depot Deployment Process
The deployment process of a Depot environment (create or update) follows this set of steps:
- You update your project CDK code and run
cdk deploy(or automated pipeline does this for you) - Custom Resources in @stage-tech/depot-cdk execute and run CREATE, UPDATE, or DELETE events against target resources in your CDK project
- Lambda functions back these Custom Resources and update a 'backing' CodeCommit repository for your Depot environment
- A Depot CodeBuild project (via CodePipeline linked to CodeCommit) executes off the back of changes detected in your environment's dedicated CodeCommit repository
- This CodeBuild project takes your environment configuration and runs it as 'input' through @stage-tech/depot-platform-cdk via an automated
cdk deployrun
- This CodeBuild project takes your environment configuration and runs it as 'input' through @stage-tech/depot-platform-cdk via an automated
- Your environment stack is updated as per the
cdk deploychangeset. Once complete the control flow is handed back down the pipeline for your project CDKcdk deployto complete. (CloudFormation events are emitted to signify CloudFormation updates complete)