/deno-lambda-example

A self-contained example for AWS Lambda using a compiled executable by Deno

Primary LanguageShell

Deno AWS Lambda Example

This is a simple and self-contained example for AWS Lambda using a compiled executable by Deno. We already have deno-lambda, a Deno runtime with a Lambda Layer, but this is an simple alternative to deploy a Deno script by compile it as a single executable.

Requirements

How to deploy

Compile the script into an executable.

deno compile --output lambda/handler --target x86_64-unknown-linux-gnu src/handler.ts

Then you can deploy by SAM CLI.

sam deploy --guided

Now you can test the Lambda function on AWS Console!