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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则