Lambda Layer for tar gz 7z
Project description
AWS Lambda Layer with zip
Usage:
// ZipLayer bundles the tar gzip 7z in a lambda layer
import { ZipLayer } from 'cdk-lambda-layer-zip';
declare const fn: lambda.Function;
fn.addLayers(new ZipLayer(this, 'ZipLayer'));
import { ZipLayer } from 'cdk-lambda-layer-zip'
import * as lambda from 'aws-cdk-lib/aws-lambda'
new lambda.Function(this, 'MyLambda', {
code: lambda.Code.fromAsset(path.join(__dirname, 'my-lambda-handler')),
handler: 'index.main',
runtime: lambda.Runtime.PYTHON_3_9,
layers: [new ZipLayer(this, 'ZipLayer')]
});
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 cdk-lambda-layer-zip-2.0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc651801a72004717cab24dfb16981ba19e2c5d96a9885bfc35beda473fd7c61 |
|
MD5 | 35c877a6c55a04a4c999bba660f55648 |
|
BLAKE2b-256 | 6c07b8b1547abca36df58756530cf4c2cadaf8d3a7a92e050c67b13c43429cd3 |
Close
Hashes for cdk_lambda_layer_zip-2.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b1e9354fe39f0ad856f48ef6195c1d51e948f4fe087b6ec312833f44630589e |
|
MD5 | 30d923ff5a42a7d2ec26fed2de319f84 |
|
BLAKE2b-256 | fc912cf9ea7c98e0ea4b19f0773ab661df5f4f8a00d546359ac42239125c94ce |