AWS CDK Lambda Layer for Node.js with newer version of aws-sdk package
2.505.0
Current packed version: 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')],
});
// ...