skip to Main Content

Amazon web services – Create python lambda layer using CDK

How do I create a custom Lambda layer for python runtime using CDK? Javascript CDK code for defining the lambda layer & function: this.sharedLayer = new lambda.LayerVersion(this, 'shared-layer', { code: lambda.Code.fromAsset('./lambda-functions/shared-layer'), compatibleRuntimes: [lambda.Runtime.PYTHON_3_8], layerVersionName: 'shared-layer', }) } this.testFunction = new…

VIEW QUESTION
Back To Top
Search