https://pulumi.com logo
#getting-started
Title
# getting-started
s

swift-architect-6677

06/15/2023, 2:56 PM
Hello. Complete noob here. I have an application that is organized as follows. Parent repo has two submodules: api and front-end. I am wondering if I can put all of my pulumi code in a separate submodule: infrastructure. If I put all of my pulumi IaC in a separate repo separate from the api I”m deploying to aws, can I still make things work? Or must the pulumi code reside in the same repo/directory as my api? Thanks and sorry for the noob question.
l

little-library-54601

06/15/2023, 3:04 PM
This article covers some considerations in answering that question: https://www.pulumi.com/blog/iac-recommended-practices-code-organization-and-stacks/
s

swift-architect-6677

06/15/2023, 3:07 PM
So it is possible to have pulumi control several deploys from a separate repo then? It is not required that it resides in the same repo as the application?
s

salmon-account-74572

06/15/2023, 3:56 PM
@swift-architect-6677 There is no requirement for the Pulumi code to reside in the same repo as the application.
The article linked above provides some additional information as well as some considerations (“food for thought”) about the different approaches you can take (same repo, different repo, etc.).
s

swift-architect-6677

06/15/2023, 3:58 PM
Yeah, I’m familiar with repo management, thx. Thanks for letting me know. Good to know I can keep Pulumi separate from my application. That is important for us. 🙂 Thanks.
s

salmon-account-74572

06/15/2023, 4:00 PM
No problem! Feel free to ask any additional questions, lots of folks (including myself) are happy to help.