Question

AWS lambda unable to find aws-sdk module


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


0 replies

Be the first to reply!

Reply