Create FasterCreate Faster
Runtime

AWS Lambda

Serverless deployment adapter for Hono with Lambda-compatible handler export.

Supported frameworks

→ AWS Lambda Documentation

What create-faster adds

No extra dependency: the adapter is the hono/aws-lambda subpath of hono.

Modified files:

  • src/index.ts - Exports a Lambda handler next to the app

When enabled:

import { handle } from 'hono/aws-lambda';
import app from './app';

export const handler = handle(app);  // Lambda entry point
export default app;  // Served by dev and start

When disabled:

import app from './app';

export default app;  // Served by dev and start

The handle adapter transforms Lambda events to Hono requests and Hono responses to Lambda responses. The handler export is the Lambda function entry point. Lambda only reads handler; the default export keeps dev and start (bun run src/index.ts) serving the app locally, and is the Worker entry when the app is deployed to Cloudflare.

With the SST deployment, the entry exports handler even without this module, because sst.config.ts deploys every Hono app as a Lambda function.

On this page