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-1.0.314.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac9fb45a4e9a274a70718daf735652333bef86a4c3f233e9a8e337a7517c5db |
|
MD5 | 05a37afad00d5d964813262457789d1f |
|
BLAKE2b-256 | 12519de5a491e4b16b295d903d21a6a5c6f3c95091510e92611298c425498247 |
Close
Hashes for cdk_lambda_layer_zip-1.0.314-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4330cefb9a30b5ab7189a70585ab2eacf57be69c3df5bb1120daf1f2242af3b9 |
|
MD5 | 9befe4a3df3970c24f3849c9f153c4cd |
|
BLAKE2b-256 | 8361c632665e0bae4796b0f1ae5186f10373366c482bb4b36bf087765cf48b54 |