# gj-aws-lambda

> ## Installation In order to add this package to your service, run the following command: ``` npm i gj-aws-lambda ```

Latest version **1.0.2** (published 2020-08-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install gj-aws-lambda
pnpm add gj-aws-lambda
yarn add gj-aws-lambda
bun add gj-aws-lambda
```

## 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.0.2 |
| Published | 2020-08-04 |
| First published | 2020-05-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | garysjennings |

## Links

- npm: https://www.npmjs.com/package/gj-aws-lambda
- npm.io page: https://npm.io/package/gj-aws-lambda

## Dependencies (4)

- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.678.0
- [archiver](https://npm.io/package/archiver.md) ^4.0.1
- [fs-extra](https://npm.io/package/fs-extra.md) ^9.0.0
- [async-retry](https://npm.io/package/async-retry.md) ^1.3.1

## Recent versions

- 1.0.2 (latest) — 2020-08-04
- 1.0.1 — 2020-05-16
- 1.0.0 — 2020-05-16

## README

# gj-aws-lambda

## Installation
In order to add this package to your service, run the following command:
```
npm i gj-aws-lambda
```

## Usage

```js
const lambda = require('gj-aws-lambda')

const main = async main() => {
    await lambda.create({
        srcLocation: 'path', // path to location 
        zipLocation: 'path', // path to location 
        name: 'my-function', // name of function 
        handler: 'src/index.handler', // file and method inside zip
        role: 'arn:something:something' // iam role arn 
    })

    /*
    return {
        status: 'CREATED' | 'UPDATED',
        name: 'my-function'
    }
    */

    await lambda.updateCode({
        srcLocation: 'path', // path to location 
        zipLocation: 'path', // path to location 
        name: 'my-function', // name of function 
    })
    /*
    return {
        status: 'UPDATED',
        data: {}
    }
    */

    await lambda.updateConfig({
        // not implemented yet
    })
    /*
    return {
        status: 'UPDATED',
        data: {}
    }
    */

    await lambda.remove('my-function') 
    /*
    return {
        status: 'UPDATED',
        data: {}
    }
    */
}


module.exports = main

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