https://pulumi.com logo
#general
Title
# general
s

steep-printer-55468

12/13/2019, 2:22 PM
I have a question about organizing stacks. I'm using the s3 backend and I've got multiple stacks configured in one project. In order to actually apply stack configurations and permit inter-stack dependencies with stack references, I've got a bunch of imports in
index.ts
to pull in various modules, then I switch on
pulumi.getStack()
to execute the right "stack module" for the selected stack. Is there a better way to organize around multiple stacks or is that the more or less standard way to do it?
b

bored-jackal-93148

12/13/2019, 8:09 PM
I assume the variants are not things that can be captured in config properties