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.
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!