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
| 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 |
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 |
- README - handler signatures, Fetch API support, response streaming, and the migration guide
- CHANGELOG / Releases - version history