Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback

deno on AWS Lambda

mod.ts exports types for writing handler functions:

import {
} from "";

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.