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.44.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46e84f86d4611f927767316747eb4d1006026c922d2f1629c52c7e002869a443 |
|
MD5 | ac348da27536cf4497ced9f2a8cb49c6 |
|
BLAKE2b-256 | 594a0448c83c8ea1869216d4ec41c1d9c0195647ffb62a4c03bac5da37139132 |
Close
Hashes for pepperize.cdk_lambda_deno-0.0.44-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04c9e3e23cb99094b3a4ed78159f92d5f7f74c7cddc488d742eddfdf59fea26b |
|
MD5 | 7ed5ce2accff54bf7f87a275721285cc |
|
BLAKE2b-256 | 163ae9383999a6db8be47277ea55aec2435d786e21e3a960dea5f65e5832c3ee |