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

Forcing include of the "aws-sdk" package

Open dariodjuric opened this issue 1 year ago • 2 comments

Hello,

Is there a way to force-include the "aws-sdk" package in the bundle? I'm aware this would make the lambdas bigger, however we need this in order to have our lambdas working in Node 18 until we migrate to SDK v3.

I've tried the following, but it always excluded the package:

  • Using forceInclude with aws-sdk in it
  • Using externals with aws-sdk in it
  • Using an empty array on forceExclude

dariodjuric avatar Oct 20 '23 10:10 dariodjuric

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

Same problem here

fabianobonomini avatar May 14 '24 09:05 fabianobonomini