Skip to content

Commit 15e7146

Browse files
author
Esen Sagynov
committed
Upgrade Node.js runtime to v18 since v16 is EOL as of 2024.
1 parent 36726d6 commit 15e7146

43 files changed

Lines changed: 78 additions & 78 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/cdk-blue-green-container-deployment/src/ecs-deployment-group.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class EcsDeploymentGroup extends Resource implements IEcsDeploymentGroup,
129129
}
130130

131131
const serviceToken = new Function(this, 'Function', {
132-
runtime: Runtime.NODEJS_16_X,
132+
runtime: Runtime.NODEJS_18_X,
133133
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'ecs-deployment-group')),
134134
handler: 'index.handler',
135135
timeout: Duration.minutes(15),

packages/cdk-blue-green-container-deployment/src/ecs-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class EcsService extends Construct implements IConnectable, IEcsService,
103103
];
104104

105105
const serviceToken = new Function(this, 'Function', {
106-
runtime: Runtime.NODEJS_16_X,
106+
runtime: Runtime.NODEJS_18_X,
107107
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'ecs-service')),
108108
handler: 'index.handler',
109109
timeout: Duration.minutes(15),

packages/cdk-chatops/src/msteams-incoming-webhook-configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class MSTeamsIncomingWebhookConfiguration extends Construct {
3636
super(scope, id);
3737

3838
this.incomingWebhook = new Function(this, 'Function', {
39-
runtime: Runtime.NODEJS_16_X,
39+
runtime: Runtime.NODEJS_18_X,
4040
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'msteams-incoming-webhook')),
4141
handler: 'index.handler',
4242
environment: {

packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/authorizations.test.ts.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Object {
6666
"Arn",
6767
],
6868
},
69-
"Runtime": "nodejs16.x",
69+
"Runtime": "nodejs18.x",
7070
"Timeout": 300,
7171
},
7272
"Type": "AWS::Lambda::Function",
@@ -183,7 +183,7 @@ Object {
183183
"Arn",
184184
],
185185
},
186-
"Runtime": "nodejs16.x",
186+
"Runtime": "nodejs18.x",
187187
},
188188
"Type": "AWS::Lambda::Function",
189189
},
@@ -232,7 +232,7 @@ Object {
232232
"Arn",
233233
],
234234
},
235-
"Runtime": "nodejs16.x",
235+
"Runtime": "nodejs18.x",
236236
},
237237
"Type": "AWS::Lambda::Function",
238238
},
@@ -1043,7 +1043,7 @@ Object {
10431043
"Arn",
10441044
],
10451045
},
1046-
"Runtime": "nodejs16.x",
1046+
"Runtime": "nodejs18.x",
10471047
"Timeout": 300,
10481048
},
10491049
"Type": "AWS::Lambda::Function",
@@ -1160,7 +1160,7 @@ Object {
11601160
"Arn",
11611161
],
11621162
},
1163-
"Runtime": "nodejs16.x",
1163+
"Runtime": "nodejs18.x",
11641164
},
11651165
"Type": "AWS::Lambda::Function",
11661166
},
@@ -1209,7 +1209,7 @@ Object {
12091209
"Arn",
12101210
],
12111211
},
1212-
"Runtime": "nodejs16.x",
1212+
"Runtime": "nodejs18.x",
12131213
},
12141214
"Type": "AWS::Lambda::Function",
12151215
},

packages/cdk-cloudfront-authorization/src/__tests__/__snapshots__/distributions.test.ts.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Object {
119119
"Arn",
120120
],
121121
},
122-
"Runtime": "nodejs16.x",
122+
"Runtime": "nodejs18.x",
123123
"Timeout": 300,
124124
},
125125
"Type": "AWS::Lambda::Function",
@@ -236,7 +236,7 @@ Object {
236236
"Arn",
237237
],
238238
},
239-
"Runtime": "nodejs16.x",
239+
"Runtime": "nodejs18.x",
240240
},
241241
"Type": "AWS::Lambda::Function",
242242
},
@@ -285,7 +285,7 @@ Object {
285285
"Arn",
286286
],
287287
},
288-
"Runtime": "nodejs16.x",
288+
"Runtime": "nodejs18.x",
289289
},
290290
"Type": "AWS::Lambda::Function",
291291
},
@@ -1506,7 +1506,7 @@ Object {
15061506
"Arn",
15071507
],
15081508
},
1509-
"Runtime": "nodejs16.x",
1509+
"Runtime": "nodejs18.x",
15101510
"Timeout": 300,
15111511
},
15121512
"Type": "AWS::Lambda::Function",
@@ -1623,7 +1623,7 @@ Object {
16231623
"Arn",
16241624
],
16251625
},
1626-
"Runtime": "nodejs16.x",
1626+
"Runtime": "nodejs18.x",
16271627
},
16281628
"Type": "AWS::Lambda::Function",
16291629
},
@@ -1672,7 +1672,7 @@ Object {
16721672
"Arn",
16731673
],
16741674
},
1675-
"Runtime": "nodejs16.x",
1675+
"Runtime": "nodejs18.x",
16761676
},
16771677
"Type": "AWS::Lambda::Function",
16781678
},

packages/cdk-cloudfront-authorization/src/secret-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class SecretGenerator extends Construct {
1515

1616
const secretGenerator = new aws_lambda.SingletonFunction(this, 'Function', {
1717
uuid: 'cloudcomponents-cdk-cloudfront-authorization-secret-generator',
18-
runtime: aws_lambda.Runtime.NODEJS_16_X,
18+
runtime: aws_lambda.Runtime.NODEJS_18_X,
1919
handler: 'index.handler',
2020
code: aws_lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'secret-generator')),
2121
});

packages/cdk-cloudfront-authorization/src/user-pool-domain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class UserPoolDomain extends Construct {
1414

1515
const secretGenerator = new aws_lambda.SingletonFunction(this, 'Function', {
1616
uuid: 'cloudcomponents-cdk-cloudfront-authorization-user-pool-domain',
17-
runtime: aws_lambda.Runtime.NODEJS_16_X,
17+
runtime: aws_lambda.Runtime.NODEJS_18_X,
1818
handler: 'index.handler',
1919
code: aws_lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'user-pool-domain')),
2020
});

packages/cdk-codepipeline-check-parameter-action/src/__tests__/__snapshots__/codepipeline-check-email-parameter-action.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Object {
236236
"Arn",
237237
],
238238
},
239-
"Runtime": "nodejs16.x",
239+
"Runtime": "nodejs18.x",
240240
},
241241
"Type": "AWS::Lambda::Function",
242242
},

packages/cdk-codepipeline-check-parameter-action/src/__tests__/__snapshots__/codepipeline-check-parameter-action.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Object {
236236
"Arn",
237237
],
238238
},
239-
"Runtime": "nodejs16.x",
239+
"Runtime": "nodejs18.x",
240240
},
241241
"Type": "AWS::Lambda::Function",
242242
},
@@ -999,7 +999,7 @@ Object {
999999
"Arn",
10001000
],
10011001
},
1002-
"Runtime": "nodejs16.x",
1002+
"Runtime": "nodejs18.x",
10031003
},
10041004
"Type": "AWS::Lambda::Function",
10051005
},
@@ -1159,7 +1159,7 @@ Object {
11591159
"Arn",
11601160
],
11611161
},
1162-
"Runtime": "nodejs16.x",
1162+
"Runtime": "nodejs18.x",
11631163
},
11641164
"Type": "AWS::Lambda::Function",
11651165
},
@@ -1909,7 +1909,7 @@ Object {
19091909
"Arn",
19101910
],
19111911
},
1912-
"Runtime": "nodejs16.x",
1912+
"Runtime": "nodejs18.x",
19131913
},
19141914
"Type": "AWS::Lambda::Function",
19151915
},

packages/cdk-codepipeline-check-parameter-action/src/check-parameter-function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface CheckParamterFunctionProps {
1919
export class CheckParameterFunction extends Function {
2020
constructor(scope: Construct, id: string, props: CheckParamterFunctionProps) {
2121
super(scope, id, {
22-
runtime: Runtime.NODEJS_16_X,
22+
runtime: Runtime.NODEJS_18_X,
2323
handler: 'index.handler',
2424
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'check-parameter')),
2525
});

0 commit comments

Comments
 (0)