const lambda = require('@aws-cdk/aws-lambda') const layer = new lambda.LayerVersion(this,"theLayer",{ code: lambda.AssetCode.fromAsset("layers/app-base"), }) こうすると、ローカルの ./layers/app-base/file が Lambda 環境では /opt/file としてアクセス可能になります。 同様に、フォルダが含まれる場合は ローカルの ./layers/app-base/path/to/file が Lambda 環境では /opt/path/to/file としてアクセス可能になります。 これを利用することで、Lambdaの実装コード中の記述としては require("/opt/path/to/file") となりま
