(@aws-cdk/pipelines): slow pipelines

Viewed 28

I have set up cross account deployment pipelines using cdk. Actually everything works as expected so I'm quite happy here.

BUT

The problem is with execution time. For my application it takes more or less 30 minutes to get the pipeline fully executed. I have circa 200 components with around 70 FileAssets.

I see several issues here:

  • FileAssets jobs are executed simultaneously in a single stage - each in separate docker image. Even though these jobs are executed at the same time it's seems it's not optimal. I guess better would be to execute everything in a single job.
  • when a single change is introduced in the repository everything is re-deployed again, so we get feedback after 30 minutes which is unacceptable for development cycle.

Anyone can recommend some good practices here? I'm using piplines cdk module.

Thanks

0 Answers
Related