I have a question about organizing stacks. I'm usi...
# general
s
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
I assume the variants are not things that can be captured in config properties