CDK/SST question, our Cloudformation template has ...
# sst
d
CDK/SST question, our Cloudformation template has too many parameters. We can only have 200 parameters. We have ~66 Lambdas, and each Lambda gets 3 parameters. That puts us over the limit. How do we consolidate our parameters?
The parameters look like:
S3 bucket for asset...
,
S3 key for asset version...
,
Artifact hash for asset...
Have folks created multiple stacks to split their lambdas up?
f
Hey @Drew, I haven’t ran into this issue myself. Mostly of my stacks have <20 Lambda functions. Splitting them into multiple stack seems reasonable to me.
d
Dumb question. So just because we have multiple stacks doesn't necessarily mean it's like two api gateways right? A single APIG, or any resource, can be shared and referenced between separate stacks.
d
Great @Frank! It sounds like we're going to experiment with refactoring our CDK stack
f
@Dennis Dang yup! u can share an APIG across multiple stacks.
have 1 stack create it, and just call
addRoutes(..)
in other stacks.
d
Beauty Thanks @Frank We’re going to refactor our stack a bit