deno on AWS Lambda

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

import { APIGatewayProxyEvent, Context } from "";

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