Is there a way to define properties for ALL the la...
# sst
a
Is there a way to define properties for ALL the lambdas and somehow share that? Or should I do that sharing a TS
object
? I was expecting to have something like
defaultFunctionProps
but at Project level, not only
Api
. This is how SLS does it, you can define properties like
logRetention
or
permissions
at the root level. Toughts?
t
Is app.setDefaultFunctionProps what you're looking for
a
Oh, I just saw it.
Let me see.
I wonder how this works, is going to merge permissions defined globally with the ones defined individually?
For example all my lambdas should have access to SSM.
But each individual lambda has other permissions too.
t
We're making some changes to make it more clear but yes it merges
a
Ok nice, thank you.