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 réponse
1
Réponse acceptée

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
répondu il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois
  • Great! Thank you so much.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions