最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

aws cloudformation - AWS CDK Codepipeline deploy certain Stacks within cdk Stage - Stack Overflow

programmeradmin3浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论