I have an existing aws account with infrastructure that has already been deployed via CDK with a codepipeline. The codepipeline is specifying which stacks to deploy via the addStage
function of codepipelines. The stage is instantiating 7 different stacks which all get deployed currently. This is working.
The codepipeline is starting to take a long time to deploy because of the build times of the lambda functions and docker containers, and the Cloudformation actions to deploy all the stacks.
I would like to create new codepipeline for deploying specific stacks of that stage, but I'm not sure how to deploy them. It seems that the stacks that have been deployed are specific to the stage I used in the initial codepipeline, and I don't see a way to specify the stacks I want deployed without creating new stacks which would duplicate my infrastructure. In addition, I have stacks I would like deployed standalone that reference properties of other stacks. Like for example my ECS stack needs to know the SQS urls that are instantiated in the SQS stack, but I don't want to re-deploy the SQS stack.
How can this be done? I hope I don't have to tear down my existing stacks and re-deploy the stacks in a different way. I just want new codepipelines to deploy the existing stacks.