https://pulumi.com logo
Title
m

magnificent-pillow-80370

05/22/2023, 3:15 PM
basic question: can I have multiple programs in a project and can I reference resources from program1:devstack to program2:prdstack ?
b

billowy-army-68599

05/22/2023, 3:18 PM
can I have multiple programs in a project
No, a project contains one program
can I reference resources from program1:devstack to program2:prdstack
yes, using a stack reference: https://www.pulumi.com/learn/building-with-pulumi/stack-references/
m

magnificent-pillow-80370

05/22/2023, 3:25 PM
thanks for the quick response. I am migrationg from cdktf to Pulumi and figuring out the best way to design. My code is of tens of thousands of lines with 100+ stacks which interact with each other (across 3 cloud providers). I figuring out the design which is agile and scalable using pulumi.
b

billowy-army-68599

05/22/2023, 3:27 PM
We are happy to help: https://www.pulumi.com/contact/
s

salmon-account-74572

05/23/2023, 9:44 AM
You may also find some of our recommended practices helpful, check this blog series: https://www.pulumi.com/blog/iac-recommended-practices-code-organization-and-stacks/
m

magnificent-pillow-80370

05/23/2023, 10:33 AM
that helps a lot.. thanks
s

salmon-account-74572

05/23/2023, 2:45 PM
Happy to help!