Is there a way to define dependencies between stacks?
For example I have 1 stack that has some main foundation components.. if this fails to create, I dont want other stacks to be executed or created.
f
Frank
08/27/2021, 6:45 AM
Try this:
stackA.addDependency(stackB)
Frank
08/27/2021, 6:46 AM
In this case,
stackA
will deploy after
stackB
has succeeded
a
Adrián Mouly
08/27/2021, 7:26 AM
Interesting, thank you, going to try it.
Adrián Mouly
08/27/2021, 7:26 AM
Is there any best practices on how to organize stacks? I have 13 at the moment, all instanced from
index.ts
.
f
Frank
08/30/2021, 5:49 AM
Don’t see any downside of having 13 stacks in the index.ts 👍 Let me know if you run into any issues/limitations as # of ur stacks grow.