garyyeap / simple-aws-lambda-update

A simple tool to update your NPM package to AWS Lambda with zero extra configurations required.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A simple tool to update your NPM package to AWS Lambda with zero extra configurations required.

License:MIT License


Languages

Language:JavaScript 100.0%