Hey all! I had a question about how to structure ...
# getting-started
n
Hey all! I had a question about how to structure our cloud resources within pulumi projects. So things that are meant to be shared (only created once), for example, users and groups, shared fargate clusters, VPCs, and so on, should be in a project, called "infra" for example. Then we could have another pulumi project, called MyApp, that manages the resources specific to this app right? So this second project would use the resources created in the first one, correct? I would be very interested in the experience of others and how they structure their cloud resources and their git-ops repositories if someone is willing to share! Thanks in advance for your help! Cheers!
c
Yes, you would use Stack Outputs from the infra stack, and referenced from the application stack. This is a good choice for anything shared, eg VPCs ( including Subnets, etc ). We typically don't use Pulumi directly for this, but rather put these id's in SSM Parameters, and use that for lookups.
n
thanks a lot for your response, this is very helpful!
b
I was hoping to start with a single repo/project for a while, but then was forced into this pattern (ECS definition includes container version; to update container version for a deploy, have to run Pulumi; therefore Pulumi has to be in the app's repo for CI)
n
Thanks a bunch!