How does SST handle split stacks ? Eg if you reach...
# general
j
How does SST handle split stacks ? Eg if you reach max number of lambdas per template will it spawn a second template and manage that behind the scenes ? 🤞 Or you have to use the serverless framework plugin ? Something else ?
t
Interesting question, as SST relies on CDK for synthesizing CF stacks our behavior would reflect whatever CDK does
Fancy way for me to say I don't know what would happen 😄
Seems that CDK doesn't do anything automatically: https://github.com/aws/aws-cdk/issues/3463
f
Just to add to @thdxr’s point, SST doesn’t split stacks out of the box. It’s recommended to manage the stacks your self instead of letting something like the
serverless-plugin-split-stacks
Serverless Framework plugin to manage it for you.
CloudFormation upped the number of resources a single template can have from 200 to 500. So it’s been a lesser concern for ppl these days.
@Justin if you are running into the resources limit, I’m happy to take a look at your stack and suggest ways we can split it up.
a
@Frank I'd love to see some generic guidance to (if possible). We're not there yet (still in design phase), but it would be good to know how best to build the stacks and how to knit them together (if possible). We're using AppSync with unique lambdas for each resolver FYI.
j
I don't expect to hit the current resources limit, just wondering what happened in the event (because of complexities of running nested templates etc)
f