Repository navigation
example: add Bun Hono example - #876
Open
mattenarle10 wants to merge 2 commits into
Open
mattenarle10 wants to merge 2 commits into
mattenarle10 wants to merge 2 commits into
Conversation
Run a Hono app on Bun in a container image behind Lambda Web Adapter. The Dockerfile installs Bun with npm on the Node.js image from ECR Public, because Bun has no official image there. Add the example to the image matrix so Verify Examples builds and boots it, and claim its manifest in dependabot.yml.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available: N/A
Description of changes:
This PR adds
examples/bun-hono. It runs a Hono application on Bun in a container image with Lambda Web Adapter. The application is a Bun HTTP server in TypeScript with no build step.Changes:
examples/bun-hono: the application, the Dockerfile, the SAM template, and a README..github/example-matrix.json: animageentry, so Verify Examples builds and boots the example..github/dependabot.yml: an npm entry for/examples/bun-hono/app.README.mdanddocs/guide/src/examples/overview.md: the example is in the two lists.The Dockerfile starts from the Node.js image on Amazon ECR Public and installs Bun with npm. Bun has no official image on ECR Public, and the examples do not pull from Docker Hub (#752).
GET /returns the request ID and the function name, not the full request context and Lambda context. The full contexts contain the AWS account ID.This is a companion to #875 (Hono in Zip). The two PRs do not change the same lines.
Testing:
check-example-config.shandsam validate --lintpass.test-image (bun-hono)job: https://github.com/mattenarle10/aws-lambda-web-adapter/actions/runs/37814634690GET /andGET /hello/lambdareturn 200.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.