Hi everyone, Please help me in this case:
I am using the serverless framework to deploy my aws lambda
My resources:
- I am using Nest js mono repo mode, Each mini repo is a lambda.
- In the serverless.yml file, I define many lambdas
- Currently, When I deploy those lambdas. The package size of each lambda is the same. Inside each package includes the code of other lambdas (It is shouldn’t, because redundant)
NOTE: I try the flag “package: { individually: true }” but no meaning.
The question is: How to optimize the package of each lambda? (the package contains only the code of that lambda).