@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.
@@ -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 container with resource tracking.
302
+ * Extracts Node.js binary from AWS Lambda Docker image with resource tracking.
303
303
  *
304
- * Enhanced version that tracks Docker containers for cleanup on failure.
305
- * Uses Docker to run the AWS Lambda runtime image and copy the Node.js
306
- * binary to the local filesystem for packaging in the layer.
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
- * OPTIMIZATION: Extracts only the core Node.js binary and applies size optimizations
309
- * to ensure the layer stays within AWS Lambda's 50MB ZIP limit.
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 must follow a specific directory structure:
347
- * - /opt/nodejs/bin/ for Node.js binaries
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambda-kata/cdk",
3
- "version": "0.1.3-rc.5",
3
+ "version": "0.1.3-rc.6",
4
4
  "description": "AWS CDK integration for Lambda Kata - Node.js Lambdas running via Lambda Kata runtime",
5
5
  "main": "out/dist/index.js",
6
6
  "types": "out/tsc/src/index.d.ts",