sparse-intern-71089
11/23/2023, 4:23 AMgifted-gigabyte-53859
11/23/2023, 9:15 AMquick-machine-30319
11/23/2023, 11:43 AMquick-machine-30319
11/23/2023, 11:45 AMgorgeous-alarm-29295
11/23/2023, 5:00 PMAre you looking to have multiple stacks for those different things you mention, and then integrate them (e.g. use the subnets created in the networking stack as an input to the storage stack)?Correct. that is what I am looking. Thanks for linking the issue @gifted-gigabyte-53859 It is exactly what I looking for. 🙂
gorgeous-alarm-29295
11/23/2023, 5:59 PMlittle-cartoon-10569
11/23/2023, 8:30 PMIs it possible to have resources in different files such as a Pulumi.yaml for VPC and Networking etc and then another one for Storage and so on ?This is what projects are for. You can have a networking project (with stacks), a storage project (with stacks), etc. In general, different stacks from a single project shouldn't refer to each other. It becomes too hard to manage deployment order and dependencies. When projects are used for this purpose, there's generally no problem defining deployment order: networking must be deployed before storage. But stacks contain different copies of the same resources, so why would stackX have to be deployed before (or after) stackY? They're non-overlapping copies of the same resources, so they're independent by definition.
gorgeous-alarm-29295
11/23/2023, 9:19 PMgcp
2. The project then has stacks corresponding to env like gcp-dev, gcp-staging, and gcp-prod
3. The project also has various resources (in different yaml files) such as VPCs, GKE cluster, buckets etc
4. These config for resources can be managed under the stack, such a gcp-dev specifies the regions and project for all resourceslittle-cartoon-10569
11/23/2023, 11:41 PMlittle-cartoon-10569
11/23/2023, 11:46 PMcompiler
option described here: https://www.pulumi.com/docs/languages-sdks/yaml/#compiler-support