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 Answer
1
Accepted Answer

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
EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed 2 months ago
  • Great! Thank you so much.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions