Redesign to lower amount of stacks for CDK pipeline? #25463
-
We are currently building an application with CDK (NodeJS) and have been doing deploys manually with cdk deploy. We are now in a phase where we would like to start deploying the application more formally with a CI/CD pipeline, so we decided to use CDK pipelines as I feels it gives me the most benefit. Sadly we have way too many stacks for that to work. Currently we divide our stacks into:
What this leads to is us having a ton of actions (likely in the 700s), which means we exceed the number of actions we are allowed to have when using AWS CodePipeline by a lot (we also have about 250 FileAssets), and we would like to first deploy a test environment and later deploy that to prod, meaning that we are likely looking at 1500 actions. What would be the most reasonable course of action? I am currently looking at:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You could always request a limit increase above the default 500 action limit per pipeline Else, I'd be interested to hear why you need one stack per event / model? Are there any potential ways you could refactor this down? |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
-
Same here. We’re using the CDK Pipelines framework. Currently, our CodePipeline, which was created using the ‘opinionated’ CDK Pipelines framework, generates 445 assets for deployment to the target account. As a result, we’re reaching the 500-resource limit imposed on the CloudFormation stack that defines the CI/CD pipeline. |
Beta Was this translation helpful? Give feedback.
Ah, you're right, unfortunate.
I don't think this is possible, no. My understanding is that all actions have to be defined on the actual pipeline resource in the cloudformation template. i'm not sure if actions could be combined either