Package Exports
- @cdk-lambda-layers/node-aws-sdk
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cdk-lambda-layers/node-aws-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
AWS CDK Lambda Layer for Node.js with newer version of aws-sdk package
Current packed version: 2.505.0
How to use?
import NodeAwsSdkLayer from '@cdk-lambda-layers/node-aws-sdk';
// .. inside stack ...
const lambdaFn = new Function(this, 'LambdaFunction', {
code: new AssetCode(__dirname),
handler: 'index.handler',
runtime: Runtime.NODEJS_10_X,
layers: [new NodeAwsSdkLayer('OptionalIdentifier')],
});
// ...