@lambda-kata/cdk 0.1.3-rc.5 → 0.1.3-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/dist/index.js +30 -30
- package/out/tsc/src/aws-layer-manager.d.ts +9 -8
- package/package.json +1 -1
|
@@ -299,14 +299,15 @@ export declare class AWSLayerManager implements LayerManager {
|
|
|
299
299
|
*/
|
|
300
300
|
private createTempDirectory;
|
|
301
301
|
/**
|
|
302
|
-
* Extracts Node.js binary from AWS Lambda Docker
|
|
302
|
+
* Extracts Node.js binary from AWS Lambda Docker image with resource tracking.
|
|
303
303
|
*
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
304
|
+
* Uses ONLY AWS Lambda Docker images to extract the Node.js binary from the
|
|
305
|
+
* official Lambda runtime environment. This ensures compatibility with the
|
|
306
|
+
* Lambda execution environment while extracting only the minimal binary needed.
|
|
307
307
|
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
308
|
+
* CRITICAL: Uses ONLY AWS Lambda Docker images as required by user specifications.
|
|
309
|
+
* Docker image format: public.ecr.aws/lambda/nodejs:{version}-{arch}
|
|
310
|
+
* Extracts ONLY: /var/lang/bin/node
|
|
310
311
|
*
|
|
311
312
|
* @param nodeVersion - The Node.js version (e.g., "20.10.0")
|
|
312
313
|
* @param architecture - The target architecture
|
|
@@ -343,8 +344,8 @@ export declare class AWSLayerManager implements LayerManager {
|
|
|
343
344
|
/**
|
|
344
345
|
* Creates the proper Lambda Layer directory structure.
|
|
345
346
|
*
|
|
346
|
-
* Lambda Layers
|
|
347
|
-
* - /opt/nodejs/bin/
|
|
347
|
+
* Lambda Layers for Node.js binary should use minimal structure:
|
|
348
|
+
* - bin/node (not /opt/nodejs/bin/node)
|
|
348
349
|
*
|
|
349
350
|
* @param tempDir - Base temporary directory
|
|
350
351
|
* @param nodeBinaryPath - Path to the Node.js binary
|
package/package.json
CHANGED