Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 2.07 KB

README.md

File metadata and controls

31 lines (24 loc) · 2.07 KB

Example TypeScript Lambda

This is an example of a TypeScript lambda, using:

Logs appear in Central ELK.

It's quite opinionated, using:

  • esbuild to compile TypeScript to run on AWS Lambda
  • Jest for testing

The aim is for this to be a starting point for a new application. Note, however, that there is a risk the repository might need updating. For example, dependency versions, or Node version.

Usage

  1. Fork (or clone1) this repository
  2. Add your code to packages/lambda/src
  3. Deploy via Riff-Raff

You'll want to edit some parts of the infrastructure in packages/cdk to ensure the app is deployed to the desired AWS account.

You'll also want to update or remove the Dependabot auto-approve workflow, which keeps this repository up to date with dependencies but may not be suitable for a production lambda!

Footnotes

  1. If cloning, you'll also want to update the remote url to match your repository