I am using serverless framework alongside lambda layers and few lambdas functions. I had to include aws-sdk in order to support some of the features.
The lambda layer size with aws-sdk is 80MB where aws-sdk takes 40MB alone.
what I know is Lambda function include aws-sdk by default. but does that imply on lambda layer as well?
Notes
- I tried to remove aws-sdk and deploy and the lambda function shows an error 'can't find module aws-sdk'
- NODE_PATH: "./:/opt/node_modules" is included in serverless.yml (will this cause aws-sdk to not being included by default)?
- Runtime is nodejs10.x