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

prehistoric-translator-89978

06/23/2022, 10:22 PM
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

billowy-army-68599

06/24/2022, 1:05 AM
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

prehistoric-translator-89978

06/24/2022, 1:15 AM
Ah cool... Cheers mate
4 Views