local-lambda is a CLI to test AWS Lambda functions locally.
- 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
$ npm i -g @rajikaimal/llambda
Set following env variables.
APP- application to which the Lambda belongs toSERVICE- service to which the Lambda belongs toFN- The Lambda function name
Navigate to the handler directory of the function and run,
llambda dev
$ corepack enable
$ corepack use pnpm@10.4.1
MIT