AWS CDK: Add new stack to my IAC, or create a new IAC?

0

I have the next infrastructure

One IAC done with aws cdk with python that deploys mi main app microservices, this IAC also creates the cognito user pool and deploys my frontend app.

Now, I've developed a new part of the app that consist on another set of microservices. One of this new set of microservices will need at least access to the cognito user pool, and the frontend of my main app that is in the IAC will need access to some variables of the new set of microservices, but about functionality it is a sepparate functionality from the main app. Should I create another IAC to deploy this new set? Or should I put it inside the IAC I already have working?

Thank you!

1개 답변
1
수락된 답변

Given your scenario, it's likely more beneficial to add the new set of microservices as a new stack within your existing CDK IAC project. This approach simplifies management of shared resources (like the Cognito User Pool), maintains a unified deployment process, and avoids the complexity and overhead of managing multiple IAC projects. Just ensure you structure your project to minimize complexity, using modular design patterns and clearly documenting dependencies.

profile picture
전문가
답변함 2달 전
profile picture
전문가
검토됨 2달 전
profile picture
전문가
검토됨 2달 전
  • Great! Thank you so much.

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

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

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

관련 콘텐츠