rajikaimal/local-lambda

Run lambda locally with live reload

★ 0Forks 0TypeScriptGitHub ↗Compare

README

local-lambda

local-lambda is a CLI to test AWS Lambda functions locally.

Features

  • Locally test Lambda deployed with any IaC tool such as CDK, Terrform etc.
  • Test IAM permissions - Lambda fails if the IAM permissions are not permissive
  • Breakpoint debugging with any IDE
  • Live reload

Install

$ npm i -g @rajikaimal/llambda

Usage

Set following env variables.

  • APP - application to which the Lambda belongs to
  • SERVICE - service to which the Lambda belongs to
  • FN - The Lambda function name

Navigate to the handler directory of the function and run,

llambda dev

pnpm

$ corepack enable
$ corepack use [email protected]

MIT

Contributors

rajikaimalgoogle-labs-jules[bot]

Issues