https://github.com/fujiharuka/deno-lambda-example
A self-contained example for AWS Lambda using a compiled executable by Deno
https://github.com/fujiharuka/deno-lambda-example
Last synced: 3 months ago
JSON representation
A self-contained example for AWS Lambda using a compiled executable by Deno
- Host: GitHub
- URL: https://github.com/fujiharuka/deno-lambda-example
- Owner: FujiHaruka
- Created: 2021-08-28T08:19:38.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-28T09:20:25.000Z (almost 4 years ago)
- Last Synced: 2025-01-08T04:12:59.209Z (5 months ago)
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/hayd/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
- [SAM](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
- [Deno](https://deno.land/) >= 1.6## How to deploy
Compile the script into an executable.
```sh
deno compile --output lambda/handler --target x86_64-unknown-linux-gnu src/handler.ts
```Then you can deploy by SAM CLI.
```sh
sam deploy --guided
```Now you can test the Lambda function on AWS Console!