cdk-lambda-layer-zip
TypeScript icon, indicating that this package has built-in type declarations

2.0.721 • Public • Published

AWS Lambda Layer with zip

NPM version PyPI version Release Gitpod Ready-to-Code

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')]
});

Readme

Keywords

Package Sidebar

Install

npm i cdk-lambda-layer-zip

Weekly Downloads

270

Version

2.0.721

License

Apache-2.0

Unpacked Size

6.94 MB

Total Files

11

Last publish

Collaborators

  • clarencetw