deno.land / x / lambda@1.16.0

deno on AWS Lambda

mod.ts exports types for writing handler functions:

import {
  APIGatewayProxyEventV2,
  APIGatewayProxyResultV2,
  Context,
} from "https://deno.land/x/lambda/mod.ts";

export async function handler(
  event: APIGatewayProxyEventV2,
  context: Context,
): Promise<APIGatewayProxyResultV2> {
  return {
    body: `Welcome to deno ${Deno.version.deno} 🦕`,
    headers: { "content-type": "text/html;charset=utf8" },
    statusCode: 200,
  };
}

See deno-lambda repository for more info on running deno on AWS Lambda.


Note: The bootstrap script is the entrypoint used by AWS Lambda.

lambda
A deno runtime for AWS Lambda. Deploy deno via docker, SAM, serverless, or bundle it yourself.
DocumentationDocumentation
GitHub Repositoryhayd/deno-lambda
GitHub Stars
638

Version Info

Tagged at
6 months ago