quidproquo-deploy-awscdk 0.0.67 → 0.0.69
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/constructs/QpqWebserverSubdomainRedirectConstruct.js +1 -1
- package/lib/constructs/QpqWebserverWebEntryConstruct.js +2 -2
- package/lib/constructs/basic/Function.js +1 -1
- package/lib/constructs/core/QPQServiceStack.js +1 -1
- package/package.json +1 -1
- package/src/constructs/QpqWebserverSubdomainRedirectConstruct.ts +1 -1
- package/src/constructs/QpqWebserverWebEntryConstruct.ts +2 -2
- package/src/constructs/basic/Function.ts +1 -1
- package/src/constructs/core/QPQServiceStack.ts +1 -1
|
@@ -41,7 +41,7 @@ class QpqWebserverSubdomainRedirectConstruct extends QpqConstruct_1.QpqConstruct
|
|
|
41
41
|
const redirectLambda = new aws_cdk_lib_1.aws_lambda.Function(this, 'lambda', {
|
|
42
42
|
functionName: this.resourceName(`redirect-${props.setting.subdomain}`),
|
|
43
43
|
timeout: cdk.Duration.seconds(25),
|
|
44
|
-
runtime: aws_cdk_lib_1.aws_lambda.Runtime.
|
|
44
|
+
runtime: aws_cdk_lib_1.aws_lambda.Runtime.NODEJS_18_X,
|
|
45
45
|
memorySize: 128,
|
|
46
46
|
code: aws_cdk_lib_1.aws_lambda.Code.fromAsset(path_1.default.join(buildPath, 'lambdaAPIGatewayEvent_redirect')),
|
|
47
47
|
handler: 'index.executeAPIGatewayEvent',
|
|
@@ -144,14 +144,14 @@ class QpqWebserverWebEntryConstruct extends QpqConstruct_1.QpqConstruct {
|
|
|
144
144
|
const edgeFunctionVR = new aws_cdk_lib_1.aws_cloudfront.experimental.EdgeFunction(this, `SEO-${props.setting.name}-VR`, {
|
|
145
145
|
functionName: this.resourceName(`SEO-VR-${props.setting.name}`),
|
|
146
146
|
timeout: cdk.Duration.seconds(5),
|
|
147
|
-
runtime: aws_cdk_lib_1.aws_lambda.Runtime.
|
|
147
|
+
runtime: aws_cdk_lib_1.aws_lambda.Runtime.NODEJS_18_X,
|
|
148
148
|
code: aws_cdk_lib_1.aws_lambda.Code.fromAsset(path_1.default.join(seoEntryBuildPath, 'lambdaEventViewerRequest')),
|
|
149
149
|
handler: 'index.executeEventViewerRequest',
|
|
150
150
|
});
|
|
151
151
|
const edgeFunctionOR = new aws_cdk_lib_1.aws_cloudfront.experimental.EdgeFunction(this, `SEO-${props.setting.name}-OR`, {
|
|
152
152
|
functionName: this.resourceName(`SEO-OR-${props.setting.name}`),
|
|
153
153
|
timeout: cdk.Duration.seconds(30),
|
|
154
|
-
runtime: aws_cdk_lib_1.aws_lambda.Runtime.
|
|
154
|
+
runtime: aws_cdk_lib_1.aws_lambda.Runtime.NODEJS_18_X,
|
|
155
155
|
memorySize: 1024,
|
|
156
156
|
code: aws_cdk_lib_1.aws_lambda.Code.fromAsset(path_1.default.join(seoEntryBuildPath, 'lambdaEventOriginRequest')),
|
|
157
157
|
handler: 'index.executeEventOriginRequest',
|
|
@@ -37,7 +37,7 @@ class Function extends QpqConstruct_1.QpqConstruct {
|
|
|
37
37
|
this.lambdaFunction = new aws_cdk_lib_1.aws_lambda.Function(this, 'function', {
|
|
38
38
|
functionName: props.functionName,
|
|
39
39
|
timeout: cdk.Duration.seconds(props.timeoutInSeconds || 25),
|
|
40
|
-
runtime: aws_cdk_lib_1.aws_lambda.Runtime.
|
|
40
|
+
runtime: aws_cdk_lib_1.aws_lambda.Runtime.NODEJS_18_X,
|
|
41
41
|
memorySize: props.memoryInBytes || 1024,
|
|
42
42
|
layers: props.apiLayerVersions,
|
|
43
43
|
code: aws_cdk_lib_1.aws_lambda.Code.fromAsset(path_1.default.join(props.buildPath, props.functionType)),
|
|
@@ -19,7 +19,7 @@ class QpqServiceStack extends aws_cdk_lib_1.Stack {
|
|
|
19
19
|
return new aws_cdk_lib_1.aws_lambda.LayerVersion(this, `${layer.name}-layer`, {
|
|
20
20
|
layerVersionName: quidproquo_actionprocessor_awslambda_1.awsNamingUtils.getQpqRuntimeResourceName(layer.name, props.qpqConfig),
|
|
21
21
|
code: new aws_cdk_lib_1.aws_lambda.AssetCode(layer.buildPath),
|
|
22
|
-
compatibleRuntimes: [aws_cdk_lib_1.aws_lambda.Runtime.
|
|
22
|
+
compatibleRuntimes: [aws_cdk_lib_1.aws_lambda.Runtime.NODEJS_18_X],
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
}
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@ export class QpqWebserverSubdomainRedirectConstruct extends QpqConstruct<Subdoma
|
|
|
22
22
|
functionName: this.resourceName(`redirect-${props.setting.subdomain}`),
|
|
23
23
|
timeout: cdk.Duration.seconds(25),
|
|
24
24
|
|
|
25
|
-
runtime: aws_lambda.Runtime.
|
|
25
|
+
runtime: aws_lambda.Runtime.NODEJS_18_X,
|
|
26
26
|
memorySize: 128,
|
|
27
27
|
|
|
28
28
|
code: aws_lambda.Code.fromAsset(path.join(buildPath, 'lambdaAPIGatewayEvent_redirect')),
|
|
@@ -186,7 +186,7 @@ export class QpqWebserverWebEntryConstruct extends QpqConstruct<WebEntryQPQWebSe
|
|
|
186
186
|
{
|
|
187
187
|
functionName: this.resourceName(`SEO-VR-${props.setting.name}`),
|
|
188
188
|
timeout: cdk.Duration.seconds(5),
|
|
189
|
-
runtime: aws_lambda.Runtime.
|
|
189
|
+
runtime: aws_lambda.Runtime.NODEJS_18_X,
|
|
190
190
|
|
|
191
191
|
code: aws_lambda.Code.fromAsset(path.join(seoEntryBuildPath, 'lambdaEventViewerRequest')),
|
|
192
192
|
handler: 'index.executeEventViewerRequest',
|
|
@@ -199,7 +199,7 @@ export class QpqWebserverWebEntryConstruct extends QpqConstruct<WebEntryQPQWebSe
|
|
|
199
199
|
{
|
|
200
200
|
functionName: this.resourceName(`SEO-OR-${props.setting.name}`),
|
|
201
201
|
timeout: cdk.Duration.seconds(30),
|
|
202
|
-
runtime: aws_lambda.Runtime.
|
|
202
|
+
runtime: aws_lambda.Runtime.NODEJS_18_X,
|
|
203
203
|
|
|
204
204
|
memorySize: 1024,
|
|
205
205
|
|
|
@@ -33,7 +33,7 @@ export class Function extends QpqConstruct<any> {
|
|
|
33
33
|
functionName: props.functionName,
|
|
34
34
|
timeout: cdk.Duration.seconds(props.timeoutInSeconds || 25),
|
|
35
35
|
|
|
36
|
-
runtime: aws_lambda.Runtime.
|
|
36
|
+
runtime: aws_lambda.Runtime.NODEJS_18_X,
|
|
37
37
|
memorySize: props.memoryInBytes || 1024,
|
|
38
38
|
layers: props.apiLayerVersions,
|
|
39
39
|
|
|
@@ -34,7 +34,7 @@ export class QpqServiceStack extends Stack {
|
|
|
34
34
|
return new aws_lambda.LayerVersion(this, `${layer.name}-layer`, {
|
|
35
35
|
layerVersionName: awsNamingUtils.getQpqRuntimeResourceName(layer.name, props.qpqConfig),
|
|
36
36
|
code: new aws_lambda.AssetCode(layer.buildPath),
|
|
37
|
-
compatibleRuntimes: [aws_lambda.Runtime.
|
|
37
|
+
compatibleRuntimes: [aws_lambda.Runtime.NODEJS_18_X],
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
}
|