I'm looking at how to organize projects/stacks wit...
# getting-started
p
I'm looking at how to organize projects/stacks with self managed backend. In the docu, the following structure is proposed:
Copy code
├── infrastructure
│   ├── index.ts
│   ├── Pulumi.yaml
│   ├── Pulumi.dev.yaml
│   ├── Pulumi.staging.yaml
│   └── Pulumi.prod.yaml
├── myApp
│   ├── index.ts
│   ├── Pulumi.yaml
│   ├── Pulumi.dev.yaml
│   ├── Pulumi.staging.yaml
│   └── Pulumi.prod.yaml
└── ...
So we use infrastructure to create a vpc and other things in AWS... Now, for some reason, myApp needs to get a hold of the vpcid output from infrastructure... How would I go about that?
b
If you're using the self managed backend, you need to name your stacks myApp.dev
To get values from other stacks, you'd use a stack reference
But all stacks have to be in the same backend
p
Ah cool... Cheers mate