quidproquo-deploy-awscdk 0.0.261 → 0.0.263
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/lib/commonjs/constructs/basic/Function.js +4 -2
- package/lib/commonjs/constructs/basic/LambdaLayers.js +1 -1
- package/lib/commonjs/constructs/feature/webserver/webEntry/WebQpqWebserverWebEntryConstruct.js +2 -2
- package/lib/esm/constructs/basic/Function.js +4 -2
- package/lib/esm/constructs/basic/LambdaLayers.js +1 -1
- package/lib/esm/constructs/feature/webserver/webEntry/WebQpqWebserverWebEntryConstruct.js +2 -2
- package/package.json +7 -7
- package/src/constructs/basic/Function.ts +4 -2
- package/src/constructs/basic/LambdaLayers.ts +1 -1
- package/src/constructs/feature/webserver/webEntry/WebQpqWebserverWebEntryConstruct.ts +2 -2
|
@@ -53,13 +53,15 @@ class Function extends QpqConstructBlock_1.QpqConstructBlock {
|
|
|
53
53
|
this.lambdaFunction = new aws_cdk_lib_1.aws_lambda.Function(this, functionId, {
|
|
54
54
|
functionName: props.functionName,
|
|
55
55
|
timeout: cdk.Duration.seconds(props.timeoutInSeconds || 25),
|
|
56
|
-
runtime: aws_cdk_lib_1.aws_lambda.Runtime.
|
|
56
|
+
runtime: aws_cdk_lib_1.aws_lambda.Runtime.NODEJS_20_X,
|
|
57
57
|
memorySize: props.memoryInBytes || serviceInfo.lambdaMaxMemoryInMiB || 1024,
|
|
58
58
|
layers: props.apiLayerVersions,
|
|
59
59
|
code: aws_cdk_lib_1.aws_lambda.Code.fromAsset((0, upath_1.join)(utils_1.qpqAwsCdkPathUtils.getApiBuildPathFullPath(props.qpqConfig), props.functionType)),
|
|
60
60
|
handler: `${handlerFile}.${props.executorName}`,
|
|
61
61
|
environment: Object.assign({ AWS_NODEJS_CONNECTION_REUSE_ENABLED: '1' }, (props.environment || {})),
|
|
62
|
-
reservedConcurrentExecutions: props.
|
|
62
|
+
reservedConcurrentExecutions: quidproquo_config_aws_2.qpqConfigAwsUtils.isReservedConcurrencyDisabled(props.qpqConfig)
|
|
63
|
+
? undefined
|
|
64
|
+
: props.reservedConcurrentExecutions,
|
|
63
65
|
// TODO: Make this optional
|
|
64
66
|
tracing: aws_cdk_lib_1.aws_lambda.Tracing.DISABLED,
|
|
65
67
|
logGroup: new aws_cdk_lib_1.aws_logs.LogGroup(this, 'LogGroup', {
|
|
@@ -28,7 +28,7 @@ class LambdaLayers extends QpqConstructBlock_1.QpqConstructBlock {
|
|
|
28
28
|
? new aws_cdk_lib_1.aws_lambda.LayerVersion(this, `${layer.name}-layer`, {
|
|
29
29
|
layerVersionName: quidproquo_actionprocessor_awslambda_1.awsNamingUtils.getQpqRuntimeResourceNameFromConfig(layer.name, props.qpqConfig),
|
|
30
30
|
code: new aws_cdk_lib_1.aws_lambda.AssetCode(layer.buildPath),
|
|
31
|
-
compatibleRuntimes: [aws_cdk_lib_1.aws_lambda.Runtime.
|
|
31
|
+
compatibleRuntimes: [aws_cdk_lib_1.aws_lambda.Runtime.NODEJS_20_X],
|
|
32
32
|
})
|
|
33
33
|
: aws_cdk_lib_1.aws_lambda.LayerVersion.fromLayerVersionArn(this, `${layer.name}-layer-ref`, layer.layerArn);
|
|
34
34
|
});
|
package/lib/commonjs/constructs/feature/webserver/webEntry/WebQpqWebserverWebEntryConstruct.js
CHANGED
|
@@ -174,14 +174,14 @@ class WebQpqWebserverWebEntryConstruct extends QpqConstructBlock_1.QpqConstructB
|
|
|
174
174
|
const edgeFunctionVR = new aws_cdk_lib_1.aws_cloudfront.experimental.EdgeFunction(this, `SEO-VR`, {
|
|
175
175
|
functionName: this.qpqResourceName(props.webEntryConfig.name, 'SEO-VR'),
|
|
176
176
|
timeout: cdk.Duration.seconds(5),
|
|
177
|
-
runtime: aws_cdk_lib_1.aws_lambda.Runtime.
|
|
177
|
+
runtime: aws_cdk_lib_1.aws_lambda.Runtime.NODEJS_20_X,
|
|
178
178
|
code: aws_cdk_lib_1.aws_lambda.Code.fromAsset(path_1.default.join(seoEntryBuildPath, 'cloudFrontRequestEvent_viewerRequest')),
|
|
179
179
|
handler: 'index.cloudFrontRequestEvent_viewerRequest',
|
|
180
180
|
});
|
|
181
181
|
const edgeFunctionOR = new aws_cdk_lib_1.aws_cloudfront.experimental.EdgeFunction(this, `SEO-OR`, {
|
|
182
182
|
functionName: this.qpqResourceName(props.webEntryConfig.name, 'SEO-OR'),
|
|
183
183
|
timeout: cdk.Duration.seconds(30),
|
|
184
|
-
runtime: aws_cdk_lib_1.aws_lambda.Runtime.
|
|
184
|
+
runtime: aws_cdk_lib_1.aws_lambda.Runtime.NODEJS_20_X,
|
|
185
185
|
memorySize: 1024,
|
|
186
186
|
code: aws_cdk_lib_1.aws_lambda.Code.fromAsset(path_1.default.join(seoEntryBuildPath, 'cloudFrontRequestEvent_originRequest')),
|
|
187
187
|
handler: 'index.cloudFrontRequestEvent_originRequest',
|
|
@@ -17,7 +17,7 @@ export class Function extends QpqConstructBlock {
|
|
|
17
17
|
this.lambdaFunction = new aws_lambda.Function(this, functionId, {
|
|
18
18
|
functionName: props.functionName,
|
|
19
19
|
timeout: cdk.Duration.seconds(props.timeoutInSeconds || 25),
|
|
20
|
-
runtime: aws_lambda.Runtime.
|
|
20
|
+
runtime: aws_lambda.Runtime.NODEJS_20_X,
|
|
21
21
|
memorySize: props.memoryInBytes || serviceInfo.lambdaMaxMemoryInMiB || 1024,
|
|
22
22
|
layers: props.apiLayerVersions,
|
|
23
23
|
code: aws_lambda.Code.fromAsset(join(qpqAwsCdkPathUtils.getApiBuildPathFullPath(props.qpqConfig), props.functionType)),
|
|
@@ -26,7 +26,9 @@ export class Function extends QpqConstructBlock {
|
|
|
26
26
|
AWS_NODEJS_CONNECTION_REUSE_ENABLED: '1',
|
|
27
27
|
...(props.environment || {}),
|
|
28
28
|
},
|
|
29
|
-
reservedConcurrentExecutions: props.
|
|
29
|
+
reservedConcurrentExecutions: qpqConfigAwsUtils.isReservedConcurrencyDisabled(props.qpqConfig)
|
|
30
|
+
? undefined
|
|
31
|
+
: props.reservedConcurrentExecutions,
|
|
30
32
|
// TODO: Make this optional
|
|
31
33
|
tracing: aws_lambda.Tracing.DISABLED,
|
|
32
34
|
logGroup: new aws_logs.LogGroup(this, 'LogGroup', {
|
|
@@ -22,7 +22,7 @@ export class LambdaLayers extends QpqConstructBlock {
|
|
|
22
22
|
? new aws_lambda.LayerVersion(this, `${layer.name}-layer`, {
|
|
23
23
|
layerVersionName: awsNamingUtils.getQpqRuntimeResourceNameFromConfig(layer.name, props.qpqConfig),
|
|
24
24
|
code: new aws_lambda.AssetCode(layer.buildPath),
|
|
25
|
-
compatibleRuntimes: [aws_lambda.Runtime.
|
|
25
|
+
compatibleRuntimes: [aws_lambda.Runtime.NODEJS_20_X],
|
|
26
26
|
})
|
|
27
27
|
: aws_lambda.LayerVersion.fromLayerVersionArn(this, `${layer.name}-layer-ref`, layer.layerArn);
|
|
28
28
|
});
|
|
@@ -135,14 +135,14 @@ export class WebQpqWebserverWebEntryConstruct extends QpqConstructBlock {
|
|
|
135
135
|
const edgeFunctionVR = new aws_cloudfront.experimental.EdgeFunction(this, `SEO-VR`, {
|
|
136
136
|
functionName: this.qpqResourceName(props.webEntryConfig.name, 'SEO-VR'),
|
|
137
137
|
timeout: cdk.Duration.seconds(5),
|
|
138
|
-
runtime: aws_lambda.Runtime.
|
|
138
|
+
runtime: aws_lambda.Runtime.NODEJS_20_X,
|
|
139
139
|
code: aws_lambda.Code.fromAsset(path.join(seoEntryBuildPath, 'cloudFrontRequestEvent_viewerRequest')),
|
|
140
140
|
handler: 'index.cloudFrontRequestEvent_viewerRequest',
|
|
141
141
|
});
|
|
142
142
|
const edgeFunctionOR = new aws_cloudfront.experimental.EdgeFunction(this, `SEO-OR`, {
|
|
143
143
|
functionName: this.qpqResourceName(props.webEntryConfig.name, 'SEO-OR'),
|
|
144
144
|
timeout: cdk.Duration.seconds(30),
|
|
145
|
-
runtime: aws_lambda.Runtime.
|
|
145
|
+
runtime: aws_lambda.Runtime.NODEJS_20_X,
|
|
146
146
|
memorySize: 1024,
|
|
147
147
|
code: aws_lambda.Code.fromAsset(path.join(seoEntryBuildPath, 'cloudFrontRequestEvent_originRequest')),
|
|
148
148
|
handler: 'index.cloudFrontRequestEvent_originRequest',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quidproquo-deploy-awscdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.263",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"constructs": "^10.4.2",
|
|
39
39
|
"esbuild": "^0.25.8",
|
|
40
40
|
"liquidjs": "^10.7.0",
|
|
41
|
-
"quidproquo-actionprocessor-awslambda": "0.0.
|
|
42
|
-
"quidproquo-actionprocessor-node": "0.0.
|
|
43
|
-
"quidproquo-config-aws": "0.0.
|
|
44
|
-
"quidproquo-core": "0.0.
|
|
45
|
-
"quidproquo-webserver": "0.0.
|
|
41
|
+
"quidproquo-actionprocessor-awslambda": "0.0.263",
|
|
42
|
+
"quidproquo-actionprocessor-node": "0.0.263",
|
|
43
|
+
"quidproquo-config-aws": "0.0.263",
|
|
44
|
+
"quidproquo-core": "0.0.263",
|
|
45
|
+
"quidproquo-webserver": "0.0.263",
|
|
46
46
|
"upath": "^2.0.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@types/babel__traverse": "7.18.2",
|
|
51
51
|
"@types/node": "^22.13.13",
|
|
52
52
|
"@types/prettier": "2.6.0",
|
|
53
|
-
"quidproquo-tsconfig": "0.0.
|
|
53
|
+
"quidproquo-tsconfig": "0.0.263",
|
|
54
54
|
"typescript": "^5.8.2"
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -53,7 +53,7 @@ export class Function extends QpqConstructBlock {
|
|
|
53
53
|
functionName: props.functionName,
|
|
54
54
|
timeout: cdk.Duration.seconds(props.timeoutInSeconds || 25),
|
|
55
55
|
|
|
56
|
-
runtime: aws_lambda.Runtime.
|
|
56
|
+
runtime: aws_lambda.Runtime.NODEJS_20_X,
|
|
57
57
|
memorySize: props.memoryInBytes || serviceInfo.lambdaMaxMemoryInMiB || 1024,
|
|
58
58
|
layers: props.apiLayerVersions,
|
|
59
59
|
|
|
@@ -65,7 +65,9 @@ export class Function extends QpqConstructBlock {
|
|
|
65
65
|
...(props.environment || {}),
|
|
66
66
|
},
|
|
67
67
|
|
|
68
|
-
reservedConcurrentExecutions: props.
|
|
68
|
+
reservedConcurrentExecutions: qpqConfigAwsUtils.isReservedConcurrencyDisabled(props.qpqConfig)
|
|
69
|
+
? undefined
|
|
70
|
+
: props.reservedConcurrentExecutions,
|
|
69
71
|
|
|
70
72
|
// TODO: Make this optional
|
|
71
73
|
tracing: aws_lambda.Tracing.DISABLED,
|
|
@@ -33,7 +33,7 @@ export class LambdaLayers extends QpqConstructBlock {
|
|
|
33
33
|
? new aws_lambda.LayerVersion(this, `${layer.name}-layer`, {
|
|
34
34
|
layerVersionName: awsNamingUtils.getQpqRuntimeResourceNameFromConfig(layer.name, props.qpqConfig),
|
|
35
35
|
code: new aws_lambda.AssetCode(layer.buildPath),
|
|
36
|
-
compatibleRuntimes: [aws_lambda.Runtime.
|
|
36
|
+
compatibleRuntimes: [aws_lambda.Runtime.NODEJS_20_X],
|
|
37
37
|
})
|
|
38
38
|
: aws_lambda.LayerVersion.fromLayerVersionArn(this, `${layer.name}-layer-ref`, layer.layerArn!);
|
|
39
39
|
});
|
|
@@ -186,7 +186,7 @@ export class WebQpqWebserverWebEntryConstruct extends QpqConstructBlock {
|
|
|
186
186
|
const edgeFunctionVR = new aws_cloudfront.experimental.EdgeFunction(this, `SEO-VR`, {
|
|
187
187
|
functionName: this.qpqResourceName(props.webEntryConfig.name, 'SEO-VR'),
|
|
188
188
|
timeout: cdk.Duration.seconds(5),
|
|
189
|
-
runtime: aws_lambda.Runtime.
|
|
189
|
+
runtime: aws_lambda.Runtime.NODEJS_20_X,
|
|
190
190
|
|
|
191
191
|
code: aws_lambda.Code.fromAsset(path.join(seoEntryBuildPath, 'cloudFrontRequestEvent_viewerRequest')),
|
|
192
192
|
handler: 'index.cloudFrontRequestEvent_viewerRequest',
|
|
@@ -195,7 +195,7 @@ export class WebQpqWebserverWebEntryConstruct extends QpqConstructBlock {
|
|
|
195
195
|
const edgeFunctionOR = new aws_cloudfront.experimental.EdgeFunction(this, `SEO-OR`, {
|
|
196
196
|
functionName: this.qpqResourceName(props.webEntryConfig.name, 'SEO-OR'),
|
|
197
197
|
timeout: cdk.Duration.seconds(30),
|
|
198
|
-
runtime: aws_lambda.Runtime.
|
|
198
|
+
runtime: aws_lambda.Runtime.NODEJS_20_X,
|
|
199
199
|
|
|
200
200
|
memorySize: 1024,
|
|
201
201
|
|