A simple tool to update your NPM package to AWS Lambda with zero extra configurations required. The only prerequisite is have an aws-cli installed and configured.
Script
constupdate=require('simple-aws-lambda-update');constincludesDevDeps=false;// optional, defaultconstkeepsZipFile=false;// optional, defaultconstname='the-name-from-package-json';// optional, defaultupdate(name,keepsZipFile,includesDevDeps).then(function(){
... });Cli
aws-lambda-update --name=your-lambda-name --dev-deps --keep-zip
Note: All args are optional. Please check script section for the default values.