serverless-bundle icon indicating copy to clipboard operation
serverless-bundle copied to clipboard

lambda node-18 broke aws-sdk v2

Open dchocoboo opened this issue 2 years ago • 1 comments

i tried deploying using

  • serverless bundle 6
  • lambda node18.x

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

dchocoboo avatar Mar 08 '23 08:03 dchocoboo

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

cc: @jayair

cnuss avatar Nov 24 '23 17:11 cnuss