AWS has now published the version 3 of its SDK and it is now modularized: https://github.com/aws/aws-sdk-js-v3
A tool to build a smaller aws-sdk with only the things you need for your application.
Currently it is only possible to build a package with one AWS lib (e.g. only EC2
)
The original code of the aws-sdk
is not altered in any way.
You have a smaller packages which saves time and costs.
Example (version 2.460.0
):
Full aws-sdk: 40 MB
Package created with bash create.sh dynamodb
: 3,6 MB
Simply call bash create.sh SOFTWARE
where SOFTWARE
is a property from https://github.com/aws/aws-sdk-js/blob/master/apis/metadata.json
npm install
bash scripts/createPureNodeJsAWSSDK.sh
# the final sdk will be in the "modular-aws-sdk-pure-node" folder