AnomalyInnovations / serverless-bundle

Optimized packages for ES6 and TypeScript Node.js Lambda functions without any configuration.
https://serverless-stack.com/chapters/package-lambdas-with-serverless-bundle.html
MIT License
535 stars 157 forks source link

lambda node-18 broke aws-sdk v2 #353

Open dchocoboo opened 1 year ago

dchocoboo commented 1 year ago

i tried deploying using

with aws-sdk still using v2 inside my src instead of v3

in the lambda it throws Cannot find module 'aws-sdk'

this is due to deprecation by aws by not including aws-sdk-v2 layers natively

please let us have the option to set aws-sdk as externals so we can include it

cnuss commented 10 months ago

I've added a PR for this here: https://github.com/AnomalyInnovations/serverless-bundle/pull/366

cc: @jayair