An open API service indexing awesome lists of open source software.

https://github.com/bifravst/aws-cdk-lambda-helpers

Helper functions which simplify working with TypeScript lambdas for AWS CDK.
https://github.com/bifravst/aws-cdk-lambda-helpers

aws cdk lambda typescript

Last synced: 3 months ago
JSON representation

Helper functions which simplify working with TypeScript lambdas for AWS CDK.

Awesome Lists containing this project

README

          

# AWS CDK Lambda Helpers [![npm version](https://img.shields.io/npm/v/@bifravst/aws-cdk-lambda-helpers.svg)](https://www.npmjs.com/package/@bifravst/aws-cdk-lambda-helpers)

[![Test and Release](https://github.com/bifravst/aws-cdk-lambda-helpers/actions/workflows/test-and-release.yaml/badge.svg)](https://github.com/bifravst/aws-cdk-lambda-helpers/actions/workflows/test-and-release.yaml)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)
[![@commitlint/config-conventional](https://img.shields.io/badge/%40commitlint-config--conventional-brightgreen)](https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier/)
[![ESLint: TypeScript](https://img.shields.io/badge/ESLint-TypeScript-blue.svg)](https://github.com/typescript-eslint/typescript-eslint)

Helper functions which simplify working with TypeScript lambdas for AWS CDK.

## Installation

npm i --save-dev --save-exact @bifravst/aws-cdk-lambda-helpers

## Usage

See [the end-to-end test stack](./cdk/e2e.ts).

## `updateLambdaCode()` helper

[`updateLambdaCode()`](./src/updateLambdaCode.ts) is a helper that will update
the function code of a lambda directly without a CloudFormation deployment,
which is many times faster. This is useful during development.

See [this example](./cdk/update-lambdas.ts) on how to use it.

## Example migrations to `@bifravst/aws-cdk-lambda-helpers`

- [world.thingy.rocks backend](https://github.com/NordicPlayground/thingy-rocks-cloud-aws-js/commit/3ca6e267917db4d8cb09ca63ed54384c0e23f163)