# lambda-watcher

> Allows you to develop Lambda functions directly against AWS by updating code files as you save them locally

Latest version **1.1.4** (published 2019-06-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install lambda-watcher
pnpm add lambda-watcher
yarn add lambda-watcher
bun add lambda-watcher
```

Provides the command `lambda-watch`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2019-06-27 |
| First published | 2019-06-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.8 |
| Dependencies | 5 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 (+8 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | dnewmon |

## Links

- npm: https://www.npmjs.com/package/lambda-watcher
- Repository: https://github.com/dnewmon/lambda-watcher
- Homepage: https://github.com/dnewmon/lambda-watcher#readme
- Issues: https://github.com/dnewmon/lambda-watcher/issues
- npm.io page: https://npm.io/package/lambda-watcher

## Dependencies (5)

- [colors](https://npm.io/package/colors.md) ^1.3.3
- [adm-zip](https://npm.io/package/adm-zip.md) ^0.4.13
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.476.0
- [node-zip](https://npm.io/package/node-zip.md) ^1.1.1
- [node-options](https://npm.io/package/node-options.md) 0.0.7

## Recent versions

- 1.1.4 (latest) — 2019-06-27
- 1.1.3 — 2019-06-27
- 1.1.2 — 2019-06-27
- 1.1.1 — 2019-06-27
- 1.1.0 — 2019-06-27
- 1.0.1 — 2019-06-17
- 1.0.0 — 2019-06-17

## README

# lambda-watcher

This simple utility allows you to edit a Lambda function from your local machine and upload code changes directly to AWS using a file watcher.

The first thing it does is download, and unzip the source code locally, then it watches for file changes. When a file change occurs, it zips up the folder, uploads the zip file to an S3 bucket, and updates the Lambda function.

The function is downloaded to the current folder as `<function-name>.zip` and unzipped to a folder called `<function-name>`. The function is also uploaded to S3 as `s3://<bucket-name>/<function-name>.zip`.

Installation:

<pre>
npm install -g dnewmon/lamda-watcher
</pre>

Usage command:

<pre>
lambda-watch --s3-bucket=&lt;bucket&gt; --function-name=&lt;function&gt; \
    [--aws-region=&lt;region&gt;] [--aws-profile=&lt;name&gt;] [--change-delay=5]
    [--revision-id=$LATEST]
</pre>

`--change-delay` is the number of seconds to wait before deploying a change.  This reduces unnessasary updates.
`--revision-id` allows you to specify a version of the function to update. Typically $LATEST can be used to 
update just the latest version of the function.

---
_Source: https://npm.io/package/lambda-watcher · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
