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

2.0.712 • Public • Published

AWS Lambda Layer with wget

NPM version PyPI version Release Gitpod Ready-to-Code

Usage:

// WgetLayer bundles the wget in a lambda layer
import { WgetLayer } from 'cdk-lambda-layer-wget';

declare const fn: lambda.Function;
fn.addLayers(new WgetLayer(this, 'WgetLayer'));
import { WgetLayer } from 'cdk-lambda-layer-wget'
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 WgetLayer(this, 'WgetLayer')]
});

Readme

Keywords

Package Sidebar

Install

npm i cdk-lambda-layer-wget

Weekly Downloads

686

Version

2.0.712

License

Apache-2.0

Unpacked Size

6.17 MB

Total Files

11

Last publish

Collaborators

  • clarencetw