You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... but v3 is modular, and it's not possible to list the hundreds of packages. And because serverless-webpack do not allow regex or glob pattern, there is no workaround! On the other hand, it would be possible at least to prevent (see my PR).
Note: Personally, because I didn't know who excluded the "aws-sdk", it took me more than a day to solve the problem (first I searched for hours in the docs AWS, after in the Serverless docs and I finally found out it was serverless-bundle)
The text was updated successfully, but these errors were encountered:
I would do a PR with pleasure, but I don't know how to solve the problem because serverless-webpack do not allow regex or glob pattern! I try only @aws-sdk but it doesn't work. You should list all the packages and they are hundreds.
What is the problem ?
Using Node.js 18 and AWS SDK v3 significantly increases lambda size with defaults of serverless-bundle
Details :
From Node.js 18, the Lambda runtime layer include aws-sdk-js-v3 and the default
forceExclude: [ 'aws-sdk']
is not working any more and should be replacer by the v3 package...... but v3 is modular, and it's not possible to list the hundreds of packages. And because serverless-webpack do not allow regex or glob pattern, there is no workaround! On the other hand, it would be possible at least to prevent (see my PR).
Note: Personally, because I didn't know who excluded the "aws-sdk", it took me more than a day to solve the problem (first I searched for hours in the docs AWS, after in the Serverless docs and I finally found out it was serverless-bundle)
The text was updated successfully, but these errors were encountered: