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

2.0.732 • Public • Published

AWS Lambda Layer with curl

NPM version PyPI version Release Gitpod Ready-to-Code

Usage:

// CurlLayer bundles the curl in a lambda layer
import { CurlLayer } from 'cdk-lambda-layer-curl';

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

Readme

Keywords

Package Sidebar

Install

npm i cdk-lambda-layer-curl

Weekly Downloads

848

Version

2.0.732

License

Apache-2.0

Unpacked Size

1.74 MB

Total Files

11

Last publish

Collaborators

  • clarencetw