Deploy stacks in parallel where possible
See original GitHub issueI am deploying a CDK app that uses 9 different stacks. Many of the stacks either do not depend on each other, or can be deployed in parallel. For example one base stack that has a DynamoDB table needs to be deployed first, but then all five stacks which have a Lambda that uses that table could be deployed in parallel. Then finally a stack that creates the API gateway that points at those Lambda functions can be deployed.
Ideally I would like to be able to opt in to deploying stacks concurrently as much as possible. Right now CDK only ever deploys one stack at a time, which makes the overall cdk deploy
much slower than it needs to be.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:230
- Comments:52 (21 by maintainers)
Top Results From Across the Web
CDK Shorts #2 – Parallel Deployments | Rehan van der Merwe
CDK stacks can be deployed in parallel by generating a cloud assembly output and then specifying the order explicitly.
Read more >Parallel CDK stack deployments with GitHub Actions - Stedi
Our initial deployment style starts with a paths filter to limit what stacks deploy, based on files and folders changed in a commit....
Read more >Create an app with multiple stacks - AWS Documentation
Stacks are the unit of deployment: each stack in an app can be synthesized and deployed individually using the cdk deploy command. This...
Read more >Deploy stacks in parallel with AWS CDK Pipelines
The AWS CDK Pipelines is a higher level construct that creates a customized AWS Codepipeline specifically for deploying CDK stacks on AWS ...
Read more >Deploy to multiple machines in parallel | Bamboo - Jira
It would be much better to be able to let the tasks of the deployment run in parallel as an option. This way...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Second that. It is very time-consuming even on relatively small projects.
We are not planning to support this in the foreseeable future. I would highly recommend looking into CDK pipelines to deploy multiple stacks in parallel.