Skip to content

Commit 1d62bbb

Browse files
committed
Upgrade all code to use NODEJS_16_X instead of NODEJS_14_X.
1 parent 26db4bd commit 1d62bbb

File tree

36 files changed

+68
-68
lines changed

36 files changed

+68
-68
lines changed

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_14_X,
132+
runtime: Runtime.NODEJS_16_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_14_X,
106+
runtime: Runtime.NODEJS_16_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_14_X,
39+
runtime: Runtime.NODEJS_16_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": "nodejs14.x",
69+
"Runtime": "nodejs16.x"",
7070
"Timeout": 300,
7171
},
7272
"Type": "AWS::Lambda::Function",
@@ -183,7 +183,7 @@ Object {
183183
"Arn",
184184
],
185185
},
186-
"Runtime": "nodejs14.x",
186+
"Runtime": "nodejs16.x"",
187187
},
188188
"Type": "AWS::Lambda::Function",
189189
},
@@ -232,7 +232,7 @@ Object {
232232
"Arn",
233233
],
234234
},
235-
"Runtime": "nodejs14.x",
235+
"Runtime": "nodejs16.x"",
236236
},
237237
"Type": "AWS::Lambda::Function",
238238
},
@@ -1043,7 +1043,7 @@ Object {
10431043
"Arn",
10441044
],
10451045
},
1046-
"Runtime": "nodejs14.x",
1046+
"Runtime": "nodejs16.x"",
10471047
"Timeout": 300,
10481048
},
10491049
"Type": "AWS::Lambda::Function",
@@ -1160,7 +1160,7 @@ Object {
11601160
"Arn",
11611161
],
11621162
},
1163-
"Runtime": "nodejs14.x",
1163+
"Runtime": "nodejs16.x"",
11641164
},
11651165
"Type": "AWS::Lambda::Function",
11661166
},
@@ -1209,7 +1209,7 @@ Object {
12091209
"Arn",
12101210
],
12111211
},
1212-
"Runtime": "nodejs14.x",
1212+
"Runtime": "nodejs16.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": "nodejs14.x",
122+
"Runtime": "nodejs16.x"",
123123
"Timeout": 300,
124124
},
125125
"Type": "AWS::Lambda::Function",
@@ -236,7 +236,7 @@ Object {
236236
"Arn",
237237
],
238238
},
239-
"Runtime": "nodejs14.x",
239+
"Runtime": "nodejs16.x"",
240240
},
241241
"Type": "AWS::Lambda::Function",
242242
},
@@ -285,7 +285,7 @@ Object {
285285
"Arn",
286286
],
287287
},
288-
"Runtime": "nodejs14.x",
288+
"Runtime": "nodejs16.x"",
289289
},
290290
"Type": "AWS::Lambda::Function",
291291
},
@@ -1505,7 +1505,7 @@ Object {
15051505
"Arn",
15061506
],
15071507
},
1508-
"Runtime": "nodejs14.x",
1508+
"Runtime": "nodejs16.x"",
15091509
"Timeout": 300,
15101510
},
15111511
"Type": "AWS::Lambda::Function",
@@ -1622,7 +1622,7 @@ Object {
16221622
"Arn",
16231623
],
16241624
},
1625-
"Runtime": "nodejs14.x",
1625+
"Runtime": "nodejs16.x"",
16261626
},
16271627
"Type": "AWS::Lambda::Function",
16281628
},
@@ -1671,7 +1671,7 @@ Object {
16711671
"Arn",
16721672
],
16731673
},
1674-
"Runtime": "nodejs14.x",
1674+
"Runtime": "nodejs16.x"",
16751675
},
16761676
"Type": "AWS::Lambda::Function",
16771677
},

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_14_X,
18+
runtime: aws_lambda.Runtime.NODEJS_16_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_14_X,
17+
runtime: aws_lambda.Runtime.NODEJS_16_X,
1818
handler: 'index.handler',
1919
code: aws_lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'user-pool-domain')),
2020
});

packages/cdk-codepipeline-slack/src/__tests__/__snapshots__/slack-approval-action.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ Object {
346346
"Arn",
347347
],
348348
},
349-
"Runtime": "nodejs14.x",
349+
"Runtime": "nodejs16.x"",
350350
},
351351
"Type": "AWS::Lambda::Function",
352352
},
@@ -463,7 +463,7 @@ Object {
463463
"Arn",
464464
],
465465
},
466-
"Runtime": "nodejs14.x",
466+
"Runtime": "nodejs16.x"",
467467
},
468468
"Type": "AWS::Lambda::Function",
469469
},
@@ -1142,7 +1142,7 @@ Object {
11421142
"Arn",
11431143
],
11441144
},
1145-
"Runtime": "nodejs14.x",
1145+
"Runtime": "nodejs16.x"",
11461146
},
11471147
"Type": "AWS::Lambda::Function",
11481148
},
@@ -1259,7 +1259,7 @@ Object {
12591259
"Arn",
12601260
],
12611261
},
1262-
"Runtime": "nodejs14.x",
1262+
"Runtime": "nodejs16.x"",
12631263
},
12641264
"Type": "AWS::Lambda::Function",
12651265
},

packages/cdk-codepipeline-slack/src/slack-approval-action.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class SlackApprovalAction extends Action {
6363
}
6464

6565
const approvalRequester = new Function(scope, 'SlackApprovalRequesterFunction', {
66-
runtime: Runtime.NODEJS_14_X,
66+
runtime: Runtime.NODEJS_16_X,
6767
handler: 'index.handler',
6868
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'approval-requester')),
6969
environment,
@@ -74,7 +74,7 @@ export class SlackApprovalAction extends Action {
7474
topic.addSubscription(new LambdaSubscription(approvalRequester));
7575

7676
const approvalHandler = new Function(scope, 'SlackApprovalHandlerFunction', {
77-
runtime: Runtime.NODEJS_14_X,
77+
runtime: Runtime.NODEJS_16_X,
7878
handler: 'index.handler',
7979
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'approval-handler')),
8080
environment,

packages/cdk-codepipeline-slack/src/slack-notifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class SlackNotifier extends Construct {
4646
}
4747

4848
const notifier = new Function(scope, 'SlackNotifierFunction', {
49-
runtime: Runtime.NODEJS_14_X,
49+
runtime: Runtime.NODEJS_16_X,
5050
handler: 'index.handler',
5151
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'notifier')),
5252
environment: this.environment,

packages/cdk-contentful-webhook/src/__tests__/__snapshots__/contentful-webhook.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Object {
3939
"Arn",
4040
],
4141
},
42-
"Runtime": "nodejs14.x",
42+
"Runtime": "nodejs16.x"",
4343
"Timeout": 900,
4444
},
4545
"Type": "AWS::Lambda::Function",

packages/cdk-contentful-webhook/src/contentful-webhook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class ContentfulWebhook extends Construct {
2020

2121
const handler = new aws_lambda.SingletonFunction(this, 'CustomResourceHandler', {
2222
uuid: '91f2075f-b950-4743-a66b-ee0f6febf50d',
23-
runtime: aws_lambda.Runtime.NODEJS_14_X,
23+
runtime: aws_lambda.Runtime.NODEJS_16_X,
2424
code: aws_lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'contentful-webhook')),
2525
handler: 'index.handler',
2626
lambdaPurpose: 'Custom::ContentfulWebhook',

packages/cdk-deletable-bucket/src/__tests__/__snapshots__/deletable-bucket.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Object {
137137
"Arn",
138138
],
139139
},
140-
"Runtime": "nodejs14.x",
140+
"Runtime": "nodejs16.x"",
141141
"Timeout": 900,
142142
},
143143
"Type": "AWS::Lambda::Function",

packages/cdk-deletable-bucket/src/empty-bucket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class EmptyBucket extends Construct {
1616
const onEvent = new SingletonFunction(this, 'EmptyBucketFunction', {
1717
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'empty-bucket')),
1818
handler: 'index.handler',
19-
runtime: Runtime.NODEJS_14_X,
19+
runtime: Runtime.NODEJS_16_X,
2020
uuid: 'CloudcomponentsEmptyBucketCustomResource',
2121
timeout: Duration.minutes(15),
2222
});

packages/cdk-dynamodb-seeder/src/__tests__/__snapshots__/dynamodb-seeder.test.ts.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Object {
2222
"Arn",
2323
],
2424
},
25-
"Runtime": "nodejs14.x",
25+
"Runtime": "nodejs16.x"",
2626
"Timeout": 900,
2727
},
2828
"Type": "AWS::Lambda::Function",
@@ -169,7 +169,7 @@ Object {
169169
"Arn",
170170
],
171171
},
172-
"Runtime": "nodejs14.x",
172+
"Runtime": "nodejs16.x"",
173173
"Timeout": 900,
174174
},
175175
"Type": "AWS::Lambda::Function",
@@ -363,7 +363,7 @@ Object {
363363
"Arn",
364364
],
365365
},
366-
"Runtime": "nodejs14.x",
366+
"Runtime": "nodejs16.x"",
367367
"Timeout": 900,
368368
},
369369
"Type": "AWS::Lambda::Function",
@@ -493,7 +493,7 @@ Object {
493493
"Arn",
494494
],
495495
},
496-
"Runtime": "nodejs14.x",
496+
"Runtime": "nodejs16.x"",
497497
"Timeout": 900,
498498
},
499499
"Type": "AWS::Lambda::Function",
@@ -646,7 +646,7 @@ Object {
646646
"Arn",
647647
],
648648
},
649-
"Runtime": "nodejs14.x",
649+
"Runtime": "nodejs16.x"",
650650
"Timeout": 900,
651651
},
652652
"Type": "AWS::Lambda::Function",

packages/cdk-dynamodb-seeder/src/dynamodb-seeder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class DynamoDBSeeder extends Construct {
2727

2828
const handler = new lambda.SingletonFunction(this, 'CustomResourceHandler', {
2929
uuid: 'Custom::DynamodbSeeder',
30-
runtime: lambda.Runtime.NODEJS_14_X,
30+
runtime: lambda.Runtime.NODEJS_16_X,
3131
code: lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'dynamodb-seeder')),
3232
handler: 'index.handler',
3333
lambdaPurpose: 'Custom::DynamodbSeeder',

packages/cdk-github-webhook/src/__tests__/__snapshots__/github-webhook.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Object {
1616
"Arn",
1717
],
1818
},
19-
"Runtime": "nodejs14.x",
19+
"Runtime": "nodejs16.x"",
2020
"Timeout": 900,
2121
},
2222
"Type": "AWS::Lambda::Function",

packages/cdk-github-webhook/src/github-webhook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class GithubWebhook extends Construct {
3636

3737
const handler = new aws_lambda.SingletonFunction(this, 'CustomResourceHandler', {
3838
uuid: '83CBF3EB-7B62-44F2-8C67-8441E4C1232E',
39-
runtime: aws_lambda.Runtime.NODEJS_14_X,
39+
runtime: aws_lambda.Runtime.NODEJS_16_X,
4040
code: aws_lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'github-webhook')),
4141
handler: 'index.handler',
4242
lambdaPurpose: 'Custom::GithubWebhook',

packages/cdk-lambda-at-edge-pattern/src/__tests__/__snapshots__/http-headers.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Object {
1616
"Arn",
1717
],
1818
},
19-
"Runtime": "nodejs14.x",
19+
"Runtime": "nodejs16.x"",
2020
},
2121
"Type": "AWS::Lambda::Function",
2222
},
@@ -142,7 +142,7 @@ Object {
142142
"Arn",
143143
],
144144
},
145-
"Runtime": "nodejs14.x",
145+
"Runtime": "nodejs16.x"",
146146
"Timeout": 300,
147147
},
148148
"Type": "AWS::Lambda::Function",
@@ -374,7 +374,7 @@ Object {
374374
"Arn",
375375
],
376376
},
377-
"Runtime": "nodejs14.x",
377+
"Runtime": "nodejs16.x"",
378378
"Timeout": 300,
379379
},
380380
"Type": "AWS::Lambda::Function",
@@ -494,7 +494,7 @@ Object {
494494
"Arn",
495495
],
496496
},
497-
"Runtime": "nodejs14.x",
497+
"Runtime": "nodejs16.x"",
498498
},
499499
"Type": "AWS::Lambda::Function",
500500
},

packages/cdk-lambda-at-edge-pattern/src/__tests__/__snapshots__/origin-mutation.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Object {
6666
"Arn",
6767
],
6868
},
69-
"Runtime": "nodejs14.x",
69+
"Runtime": "nodejs16.x"",
7070
"Timeout": 300,
7171
},
7272
"Type": "AWS::Lambda::Function",
@@ -177,7 +177,7 @@ Object {
177177
"Arn",
178178
],
179179
},
180-
"Runtime": "nodejs14.x",
180+
"Runtime": "nodejs16.x"",
181181
},
182182
"Type": "AWS::Lambda::Function",
183183
},

packages/cdk-lambda-at-edge-pattern/src/edge-function.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class EdgeFunction extends BaseEdgeConstruct implements IEdgeLambda {
3939
this.eventType = props.eventType;
4040

4141
const edgeFunction = new aws_lambda.Function(this.edgeStack, `${name}Function`, {
42-
runtime: aws_lambda.Runtime.NODEJS_14_X,
42+
runtime: aws_lambda.Runtime.NODEJS_16_X,
4343
handler: 'index.handler',
4444
code: props.code,
4545
role: this.edgeRole.role,

packages/cdk-lambda-at-edge-pattern/src/with-configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class WithConfiguration extends Construct {
3030

3131
const handler = new aws_lambda.SingletonFunction(this, 'Handler', {
3232
uuid: 'cloudcomponents-cdk-lambda-at-edge-pattern-with-configuration',
33-
runtime: aws_lambda.Runtime.NODEJS_14_X,
33+
runtime: aws_lambda.Runtime.NODEJS_16_X,
3434
code: aws_lambda.Code.fromAsset(path.join(__dirname, 'lambdas', 'with-configuration')),
3535
handler: 'index.handler',
3636
lambdaPurpose: resourceType,

0 commit comments

Comments
 (0)