Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 2.55 KB

DOCS.md

File metadata and controls

29 lines (19 loc) · 2.55 KB

@beesolve/lambda-bun-runtime - Documentation

Keywords: aws lambda, bun runtime, bun layer, cdk construct, BunFunction, BunFunctionWithLayer, BunLambdaLayer, BunLambdaLayerProps, bunRuntime, runtimeArn, runtimeAlias, customer-managed runtime, CMR, publish-runtime, layerVersionArn, assetZipPath, build-layer, PROVIDED_AL2023, arm64, custom runtime, lambda layer, region, entrypoint, response streaming, function url

This documentation is published inside the installed package and matches the installed version. Prefer it over prior knowledge or older examples found online.

Full source and examples: https://github.com/BeeSolve/lambda-bun-runtime/tree/main

How-To Guides

Guide Description
Getting Started Install and deploy your first Bun Lambda on the Bun customer-managed runtime
Publish your own runtime Publish the runtime in your account or region with publish-runtime
Use a layer instead of the runtime BunFunctionWithLayer, a layer ARN, or a layer zip you build yourself

Working Examples

The examples/sample-app directory in the repository is a deployable CDK app demonstrating real-world usage:

Example What it shows
sample-app BunFunctionWithLayer + BunLambdaLayer and BunFunction across HTTP v1/v2, Function URL, response streaming, direct invoke, and Bun-native S3

Further Reading

  • README - handler signatures, Fetch API support, response streaming, and the migration guide
  • CHANGELOG / Releases - version history