Skip to main content
Deno 2 is finally here 🎉️
Learn more

deno on AWS Lambda

The mod.ts offers the types for writing handler functions (see all in types.d.ts):

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

export async function handler(event: APIGatewayProxyEvent, context: Context) {
  return {
    statusCode: 200,
    body: `Welcome to deno ${Deno.version.deno} 🦕`
  };
}

See the homepage for more info.


The bootstrap script is the entrypoint used by AWS Lambda.

To use the deno custom runtime create a lambda layer with deno-lambda-layer.zip.