# @updraft/aws-lambdas-multi-handler

> Deploy lambdas from a multi-handler codebase (✓ Single codebase, multi-handler ✓ Environment Variables ✓ Local Code Uploads)

Latest version **1.0.24** (published 2020-08-05) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @updraft/aws-lambdas-multi-handler
pnpm add @updraft/aws-lambdas-multi-handler
yarn add @updraft/aws-lambdas-multi-handler
bun add @updraft/aws-lambdas-multi-handler
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.24 |
| Published | 2020-08-05 |
| First published | 2020-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 17.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jonas Peeck |
| Maintainers | aguynamedjonas |

## Links

- npm: https://www.npmjs.com/package/@updraft/aws-lambdas-multi-handler
- Homepage: https://github.com/aGuyNamedJonas/updraft
- npm.io page: https://npm.io/package/@updraft/aws-lambdas-multi-handler

## Dependencies (3)

- [@aws-cdk/core](https://npm.io/package/@aws-cdk/core.md) ^1.41.0
- [@aws-cdk/aws-lambda](https://npm.io/package/@aws-cdk/aws-lambda.md) ^1.41.0
- [@aws-cdk/aws-route53](https://npm.io/package/@aws-cdk/aws-route53.md) ^1.41.0

## Recent versions

- 1.0.24 (latest) — 2020-08-05
- 1.0.22 — 2020-08-05
- 1.0.21 — 2020-08-04
- 1.0.23 — 2020-07-13
- 1.0.20 — 2020-07-13
- 1.0.19 — 2020-07-09
- 1.0.18 — 2020-07-09
- 1.0.17 — 2020-07-08
- 1.0.16 — 2020-07-08
- 1.0.15 — 2020-06-20
- 1.0.14 — 2020-06-20
- 1.0.12 — 2020-06-19
- 1.0.10 — 2020-06-16
- 1.0.9 — 2020-06-14
- 1.0.8 — 2020-06-14
- … 3 more at https://npm.io/package/@updraft/aws-lambdas-multi-handler/versions

## README

# @updraft/aws-lambdas-multi-handler
There's the people who setup a separate project (and package.json) for every lambda,
and then there's those kind of people (including myself) who like to keep all lambdas
in one project from which multiple handlers are exported.

If you're one of those people, who essentially like to keep a monorepo codebase around
multiple lambda functions, this module is for you.

## Features
**✓ Single codebase, multi-handler** - Setup your lambda functions as one project, exporting the handlers you want to use  
**✓ Environment Variables** - Define environment variables for your lambda functions  
**✓ Local Code Uploads** - Specify the path to your local codebase, and on deploy your code gets automatically deployed to AWS Lambda  

## Install
`npm install --save @updraft/aws-lambdas-multi-handler`

## Example
```typescript
    const userManagementLambdas = new AwsLambdasMultiHandler(this, 'user-lambdas', {
      handlerNames: ['createUser', 'getUser', 'getNewUsers', 'updateUser', 'deleteUser'],
      localCodePath: '../lambdas/dist',
      timeoutSec: 60,
      env: {
        'createUser': [
          { key: 'MIXPANEL_TOKEN', value: process.env.MIXPANEL_TOKEN }
        
      
    })
```

## Quickstart Templates
**No quickstart templates available for this component yet 😢**  

<br/><br/>
**What are *updraft* templates?**  
> Quickstart templates for *updraft* components provide you with runnable examples for that component.  
Speed up your development workflow by getting started with templates.  

> List available templates: `updraft templates @updraft/aws-static-site` (replace `aws-static-site` with the componentof your choice)

> Install CLI: `npm i -g @updraft/cli`

---
_Source: https://npm.io/package/@updraft/aws-lambdas-multi-handler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
