Is there a way to attach and enable Lambda Insight...
# help
m
Is there a way to attach and enable Lambda Insights permissions and layers for all the functions in SST? like setting in
_app_.setDefaultFunctionProps()
?
f
Hey @Mr.9715 does this work:
Copy code
app.setDefaultFunctionProps({
  layers: [...layer for Lambda Insights...]
});
m
Hey @Frank, can I attach permissions as well the same way for the layers?
f
Yup!
Copy code
app.setDefaultFunctionProps({
  layers: [...layer for Lambda Insights...],
  permissions: [...],
});
Let me know if u manage to get it to work!