Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 790 Bytes

readme.md

File metadata and controls

21 lines (17 loc) · 790 Bytes

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.

Usage

Script

const update = require('simple-aws-lambda-update');
const includesDevDeps = false;// optional, default
const keepsZipFile = false;// optional, default
const name = 'the-name-from-package-json';// optional, default

update(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.