Is there a way to define dependencies between stac...
# sst
a
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
Try this:
stackA.addDependency(stackB)
In this case,
stackA
will deploy after
stackB
has succeeded
a
Interesting, thank you, going to try it.
Is there any best practices on how to organize stacks? I have 13 at the moment, all instanced from
index.ts
.
f
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.
a
Thanks sir.