Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...
    Documentation
    GitHub

    Integrate

    AWS Lambda

    Lambda gives a function a JSON event and expects a JSON result, so spool needs an adapter. The @hono/aws-lambda package converts Function URL, API Gateway HTTP API and ALB events. Save the Hono app from the Hono page as hono.ts and wrap it.

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

    export const handler = handle(app);

    examples/courses/aws-lambda/ wraps the Hono app this way. The example is tested through its handler and has no local run command.