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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ