question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deploy stacks in parallel where possible

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:230
  • Comments:52 (21 by maintainers)

github_iconTop GitHub Comments

41reactions
dnagircommented, Mar 11, 2019

Second that. It is very time-consuming even on relatively small projects.

32reactions
eladbcommented, Oct 1, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found