Skip to content

heditwo/cdk_bun_lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lambda 🤝 Bun

This is a project template for a very minimal lambda environment which runs bun and allows for shared code in the form of a dependency layer.

To deploy this, you'll need to have built the bun layer via bun run build:bun in the root directory.

Thank you ❤️ to the @oven-sh team for maintaining the lambda runtime layer.

The cdk.json file tells the CDK Toolkit how to execute your app.

Useful commands

  • bun run build compile typescript to js
  • bun run build:bun compile the bun lambda layer
  • bun run watch watch for changes and compile
  • bun run test perform the jest unit tests
  • bunx cdk deploy deploy this stack to your default AWS account/region
  • bunx cdk diff compare deployed stack with current state
  • bunx cdk synth emits the synthesized CloudFormation template

About

Running Bun as an AWS Lambda Runtime entirely through CDK.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors