Skip to main content

To reduce the serverless package size I am trying to exclude aws-sdk from being included with deployment.

I was under the impression that the aws-sdk npm package was included by default in the aws services lambda runtime. When I make a new function this looks to be the case, I can console log the aws-sdk version just fine.

When my larger lambda, uploaded with serverless, is executed it comes back with a an import error for not finding aws-sdk

Be the first to reply!

Reply