@lambda-kata/cdk 0.1.3-rc.81 → 0.1.3-rc.84
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.
|
Binary file
|
|
@@ -119,6 +119,37 @@ export declare const HANDLER_CONFIG_KEY = "original_js_handler";
|
|
|
119
119
|
* The name of the compiled middleware file within the .kata directory.
|
|
120
120
|
*/
|
|
121
121
|
export declare const MIDDLEWARE_FILE_NAME = "middleware.js";
|
|
122
|
+
/**
|
|
123
|
+
* Bootstrap handler module name.
|
|
124
|
+
* The compiled .pyc is at src/python/dist/kata_bootstrap.pyc and is placed
|
|
125
|
+
* in the config layer at /opt/python/kata_bootstrap.pyc so the Python 3.12
|
|
126
|
+
* runtime resolves it via PYTHONPATH.
|
|
127
|
+
*
|
|
128
|
+
* Using a pre-compiled bootstrap handler prevents SnapStart snapshot failures
|
|
129
|
+
* caused by import errors in the Lambda Kata Layer (C-bridge, Node.js binary, etc.).
|
|
130
|
+
* Source: src/python/kata_bootstrap.py — compiled via `yarn build:python`.
|
|
131
|
+
*/
|
|
132
|
+
export declare const BOOTSTRAP_HANDLER_MODULE = "kata_bootstrap";
|
|
133
|
+
/**
|
|
134
|
+
* Full handler path for the bootstrap handler.
|
|
135
|
+
* Format: "<module>.<function>" as required by Lambda handler configuration.
|
|
136
|
+
*/
|
|
137
|
+
export declare const BOOTSTRAP_HANDLER_PATH = "kata_bootstrap.handler";
|
|
138
|
+
/**
|
|
139
|
+
* Resolves the absolute path to the compiled bootstrap handler .pyc file.
|
|
140
|
+
*
|
|
141
|
+
* Two resolution paths:
|
|
142
|
+
* 1. Production (bundled JS / npm package): out/dist/python/kata_bootstrap.pyc
|
|
143
|
+
* __dirname = out/dist/ → __dirname/python/kata_bootstrap.pyc
|
|
144
|
+
* 2. Development (ts-jest / source): src/python/dist/kata_bootstrap.pyc
|
|
145
|
+
* __dirname = src/ → __dirname/python/dist/kata_bootstrap.pyc
|
|
146
|
+
*
|
|
147
|
+
* @returns Absolute path to kata_bootstrap.pyc
|
|
148
|
+
* @throws Error if the compiled .pyc is not found (build step was skipped)
|
|
149
|
+
*
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
export declare function resolveBootstrapPycPath(): string;
|
|
122
153
|
/**
|
|
123
154
|
* Creates a Lambda Layer containing the kata configuration.
|
|
124
155
|
*
|
package/out/tsc/src/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export { resolveAccountIdSync, resolveAccountIdSyncWithSource, resolveRegionSync
|
|
|
25
25
|
export { kata, kataWithAccountId, applyTransformation, handleUnlicensed, isKataTransformed, getKataPromise, extractBundlePathFromHandler, KataWrapperOptions, KataResult, } from './kata-wrapper';
|
|
26
26
|
export { SnapStartActivator, SnapStartActivatorProps, } from './snapstart-construct';
|
|
27
27
|
export { activateSnapStart, handler as snapStartHandler, SnapStartActivationResult, SnapStartActivatorConfig, CustomResourceEvent, CustomResourceResponse, } from './snapstart-activator';
|
|
28
|
-
export { createKataConfigLayer, generateConfigContent, KataConfigLayerProps, CONFIG_DIR_NAME, CONFIG_FILE_NAME, HANDLER_CONFIG_KEY, } from './config-layer';
|
|
28
|
+
export { createKataConfigLayer, generateConfigContent, resolveBootstrapPycPath, KataConfigLayerProps, CONFIG_DIR_NAME, CONFIG_FILE_NAME, HANDLER_CONFIG_KEY, BOOTSTRAP_HANDLER_MODULE, BOOTSTRAP_HANDLER_PATH, } from './config-layer';
|
|
29
29
|
export { EnsureNodeRuntimeLayerOptions, EnsureNodeRuntimeLayerResult, NodeVersionInfo, LayerInfo, LayerSearchOptions, LayerRequirements, LayerCreationOptions, Logger, RuntimeDetector, LayerManager, ErrorCodes, NodeRuntimeLayerError, VersionCacheEntry, LayerMetadata, NodejsLayerDeploymentOptions, NodejsLayerDeploymentResult, MultiArchitectureDeploymentResult, } from './nodejs-layer-manager';
|
|
30
30
|
export { DockerRuntimeDetector, DockerRuntimeDetectorOptions, } from './docker-runtime-detector';
|
|
31
31
|
export { AWSLayerManager, AWSLayerManagerOptions, } from './aws-layer-manager';
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambda-kata/cdk",
|
|
3
|
-
"version": "0.1.3-rc.
|
|
3
|
+
"version": "0.1.3-rc.84",
|
|
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",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "
|
|
8
|
+
"build:python": "python3 src/python/compile.py && mkdir -p out/dist/python && cp src/python/dist/kata_bootstrap.pyc out/dist/python/kata_bootstrap.pyc",
|
|
9
|
+
"build": "rm -rf ./dist && rm -rf ./out && rm -rf ./lib && yarn run build:cdk && yarn run types && yarn run build:python",
|
|
9
10
|
"types": "tsc --emitDeclarationOnly && tsc-alias",
|
|
10
11
|
"build:cdk": "yarn run build:config && node dist/utils/build.js --target=cdk",
|
|
11
12
|
"build:minify": "yarn run build:config && node dist/utils/build.js",
|