narrow-area-2037910/27/2020, 11:36 PM
rhythmic-finland-3625610/28/2020, 11:58 AM
to import values/ids created in some base infra stack e.g. See Organizing projects and stacks for more details.
If it comes to structuring your project files, it’s not just about putting some helper functions into different
files. Pulumi comes with the concept of resources, and especially `ComponentResource`s that help building reusable components. Those classes create some own scope by parenting the regular resources and providing them a set of `Provider`s to be used. That way you can create a set of resources (inside one
that use a specific set of providers without specifying the provider for each individual resource. You can have a look at the docs on ComponentResources for more details. The pulumi/examples repo has some samples for using components, for example this webserver component or some more using the search…
I personally really like modularizing using `ComponentResource`s on a project level and I see some benefits of `StackReference`s if there are really global resources like DNS or VPCs, but I definitely would not create too many stacks upfront because this will create some new issues of outputs management and execution orders.
brief-printer-3434810/28/2020, 4:20 PM
narrow-area-2037911/02/2020, 5:48 AM
brief-printer-3434811/03/2020, 5:25 AM
rhythmic-finland-3625611/03/2020, 3:37 PM
narrow-area-2037911/03/2020, 6:09 PM
rhythmic-finland-3625611/04/2020, 7:17 AM