[CDK] how best to move from App to Stage

0

A while ago moved all our infrastructure from manually defined infrastructure to AWS CDK for easier management. We followed some tutorials for this and ended up with a CDK app that contains multiple stacks. Now we want to move to AWS CodePipelines for the CI/CD of our infrastructure, but this requires that the Stacks are part of a stage.

This presents a problem, as adding these stacks to a stage (instead of an application) means that the stacks are prefixed with the name of the Stage, which causes a recreation of stateful resources (such as DNS, and Databases, Cognito UserPools).

What is the best way to move these stacks from the application to a stage? Ideally, without recreating the resources in the stacks, or renaming the stacks.

We have found various articles that say some resources could maybe be moved, but this a highly involved process that seems overly complicated. Source: https://binx.io/2022/06/30/migrate-resources-across-cdk-stacks/

Bob
질문됨 2년 전39회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠