AWS CDK custom AWS Lambda runtime with Deno
Project description
CDK Lambda Deno
AWS CDK custom AWS Lambda runtime with Deno
Based on hayd/deno-lambda with bundled layer
Install
TypeScript
npm install @pepperize/cdk-lambda-deno
or
yarn add @pepperize/cdk-lambda-deno
Python
pip install pepperize.cdk-lambda-deno
C# / .Net
dotnet add package Pepperize.CDK.LambdaDeno
Java
<dependency>
<groupId>com.pepperize</groupId>
<artifactId>cdk-lambda-deno</artifactId>
<version>${cdkLambdaDeno.version}</version>
</dependency>
Contributing
Contributions of all kinds are welcome :rocket: Check out our contributor's guide.
For a quick start, fork or check out a development environment:
git clone git@github.com:pepperize/cdk-lambda-deno
cd cdk-lambda-deno
# install dependencies
yarn
# build with projen
yarn build
Usage
- Using the deno function construct
const stack = new Stack();
new DenoFunction(stack, "Function", {
code: lambda.Code.fromAsset(path.join(__dirname, "../example/function")),
});
- Using the deno layer construct
const stack = new Stack();
const layer = new DenoLayer(stack, "Layer", { version: DenoVersion.of("1.23.3") });
new lambda.Function(stack, "Function", {
runtime: lambda.Runtime.PROVIDED_AL2,
code: lambda.Code.fromAsset(path.join(__dirname, "../example/function")),
handler: "index.handler",
layers: [layer],
});
References
https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html https://aws.amazon.com/de/blogs/compute/build-a-custom-java-runtime-for-aws-lambda/ https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html https://github.com/hayd/deno-lambda
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pepperize.cdk-lambda-deno-0.0.259.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f590e1065ee76e56540f0f27fd8fc783c737997121b52ee91944c693d1a22c67 |
|
MD5 | 6a127e8e13a311698b8b5fa0c3e6adee |
|
BLAKE2b-256 | 341f633dd1e7bad5d7b81591ac5bc22e1f0e1cef2a858e40a3e7e63d1df3f6a1 |
Close
Hashes for pepperize.cdk_lambda_deno-0.0.259-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33af4548215c24e1f0a7a303c8bf8a642f6e7825b4f7c545314e3784e4df0366 |
|
MD5 | 3a93466b6091969e8fc79c5463794c05 |
|
BLAKE2b-256 | cdcf7d66295343ecdcdeb7950b5be41ef54bfc6392da15852266c7a15fd130ee |