Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Commit 062ed26

Browse files
committed
fix: use Node.js 14x in layer as well
1 parent cc29525 commit 062ed26

6 files changed

Lines changed: 27 additions & 12 deletions

File tree

cdk/resources/CellGeolocation.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class CellGeolocation extends CloudFormation.Resource {
5757
handler: 'index.handler',
5858
// runtime: Lambda.Runtime.NODEJS_14_X, // FIXME: use once CDK has support
5959
runtime: new Lambda.Runtime('nodejs14.x', Lambda.RuntimeFamily.NODEJS, {
60-
supportsInlineCode: true,
60+
supportsInlineCode: false,
6161
}),
6262
timeout: CloudFormation.Duration.seconds(10),
6363
memorySize: 1792,
@@ -121,7 +121,7 @@ export class CellGeolocation extends CloudFormation.Resource {
121121
handler: 'index.handler',
122122
// runtime: Lambda.Runtime.NODEJS_14_X, // FIXME: use once CDK has support
123123
runtime: new Lambda.Runtime('nodejs14.x', Lambda.RuntimeFamily.NODEJS, {
124-
supportsInlineCode: true,
124+
supportsInlineCode: false,
125125
}),
126126
timeout: CloudFormation.Duration.seconds(10),
127127
memorySize: 1792,
@@ -151,7 +151,7 @@ export class CellGeolocation extends CloudFormation.Resource {
151151
handler: 'index.handler',
152152
// runtime: Lambda.Runtime.NODEJS_14_X, // FIXME: use once CDK has support
153153
runtime: new Lambda.Runtime('nodejs14.x', Lambda.RuntimeFamily.NODEJS, {
154-
supportsInlineCode: true,
154+
supportsInlineCode: false,
155155
}),
156156
timeout: CloudFormation.Duration.minutes(1),
157157
memorySize: 1792,
@@ -187,7 +187,7 @@ export class CellGeolocation extends CloudFormation.Resource {
187187
runtime: new Lambda.Runtime(
188188
'nodejs14.x',
189189
Lambda.RuntimeFamily.NODEJS,
190-
{ supportsInlineCode: true },
190+
{ supportsInlineCode: false },
191191
),
192192
timeout: CloudFormation.Duration.seconds(10),
193193
memorySize: 1792,
@@ -428,7 +428,7 @@ export class CellGeolocation extends CloudFormation.Resource {
428428
handler: 'index.handler',
429429
// runtime: Lambda.Runtime.NODEJS_14_X, // FIXME: use once CDK has support
430430
runtime: new Lambda.Runtime('nodejs14.x', Lambda.RuntimeFamily.NODEJS, {
431-
supportsInlineCode: true,
431+
supportsInlineCode: false,
432432
}),
433433
timeout: CloudFormation.Duration.seconds(10),
434434
memorySize: 1792,

cdk/resources/CellGeolocationApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class CellGeolocationApi extends CloudFormation.Resource {
3737
handler: 'index.handler',
3838
// runtime: Lambda.Runtime.NODEJS_14_X, // FIXME: use once CDK has support
3939
runtime: new Lambda.Runtime('nodejs14.x', Lambda.RuntimeFamily.NODEJS, {
40-
supportsInlineCode: true,
40+
supportsInlineCode: false,
4141
}),
4242
timeout: CloudFormation.Duration.seconds(10),
4343
memorySize: 1792,
@@ -69,7 +69,7 @@ export class CellGeolocationApi extends CloudFormation.Resource {
6969
handler: 'index.handler',
7070
// runtime: Lambda.Runtime.NODEJS_14_X, // FIXME: use once CDK has support
7171
runtime: new Lambda.Runtime('nodejs14.x', Lambda.RuntimeFamily.NODEJS, {
72-
supportsInlineCode: true,
72+
supportsInlineCode: false,
7373
}),
7474
timeout: CloudFormation.Duration.seconds(10),
7575
memorySize: 1792,

cdk/resources/HistoricalData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class HistoricalData extends CloudFormation.Resource {
6666
handler: 'index.handler',
6767
// runtime: Lambda.Runtime.NODEJS_14_X, // FIXME: use once CDK has support
6868
runtime: new Lambda.Runtime('nodejs14.x', Lambda.RuntimeFamily.NODEJS, {
69-
supportsInlineCode: true,
69+
supportsInlineCode: false,
7070
}),
7171
timeout: CloudFormation.Duration.minutes(2),
7272
memorySize: 1792,

cdk/resources/ThingGroupLambda.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class ThingGroupLambda extends CloudFormation.Resource {
2727
handler: 'index.handler',
2828
// runtime: Lambda.Runtime.NODEJS_14_X, // FIXME: use once CDK has support
2929
runtime: new Lambda.Runtime('nodejs14.x', Lambda.RuntimeFamily.NODEJS, {
30-
supportsInlineCode: true,
30+
supportsInlineCode: false,
3131
}),
3232
timeout: CloudFormation.Duration.minutes(1),
3333
initialPolicy: [

cdk/stacks/AssetTracker.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ export class AssetTrackerStack extends CloudFormation.Stack {
5656
sourceCodeBucket,
5757
packedLambdas.layerZipFileName,
5858
),
59-
compatibleRuntimes: [Lambda.Runtime.NODEJS_12_X],
59+
// compatibleRuntimes: [Lambda.Runtime.NODEJS_14_X], // FIXME: use once CDK has support
60+
compatibleRuntimes: [
61+
new Lambda.Runtime('nodejs14.x', Lambda.RuntimeFamily.NODEJS, {
62+
supportsInlineCode: false,
63+
}),
64+
],
6065
},
6166
)
6267

@@ -68,7 +73,12 @@ export class AssetTrackerStack extends CloudFormation.Stack {
6873
sourceCodeBucket,
6974
packedCDKLambdas.layerZipFileName,
7075
),
71-
compatibleRuntimes: [Lambda.Runtime.NODEJS_12_X],
76+
// compatibleRuntimes: [Lambda.Runtime.NODEJS_14_X], // FIXME: use once CDK has support
77+
compatibleRuntimes: [
78+
new Lambda.Runtime('nodejs14.x', Lambda.RuntimeFamily.NODEJS, {
79+
supportsInlineCode: false,
80+
}),
81+
],
7282
},
7383
)
7484

cdk/stacks/FirmwareCI.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ export class FirmwareCIStack extends CloudFormation.Stack {
3939
sourceCodeBucket,
4040
packedCDKLambdas.layerZipFileName,
4141
),
42-
compatibleRuntimes: [Lambda.Runtime.NODEJS_12_X],
42+
// compatibleRuntimes: [Lambda.Runtime.NODEJS_14_X], // FIXME: use once CDK has support
43+
compatibleRuntimes: [
44+
new Lambda.Runtime('nodejs14.x', Lambda.RuntimeFamily.NODEJS, {
45+
supportsInlineCode: false,
46+
}),
47+
],
4348
},
4449
)
4550

0 commit comments

Comments
 (0)