***

title: createLambdaHandler
slug: /reference/typescript/agents/configuration/serverless-adapter/create-lambda-handler
description: Create an AWS Lambda-compatible handler from a Hono app.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Static method that creates an AWS Lambda-compatible handler function from a
Hono app. The returned function accepts a Lambda event and returns a promise
of a `ServerlessResponse`.

## **Parameters**

<ParamField path="app" type="{ fetch: (req: Request) => Promise<Response> }" required={true} toc={true}>
  A Hono-compatible application with a `fetch` method.
</ParamField>

## **Returns**

`(event: ServerlessEvent) => Promise<ServerlessResponse>` -- A Lambda handler function.

## **Example**

```typescript {4}
import { ServerlessAdapter } from '@signalwire/sdk';

// Export as AWS Lambda handler
export const handler = ServerlessAdapter.createLambdaHandler(app);
```