Skip to content

Commit 85fcc7b

Browse files
committed
Upgrade all code to use NODEJS_16_X instead of NODEJS_12_X.
1 parent 1d62bbb commit 85fcc7b

File tree

14 files changed

+25
-25
lines changed

14 files changed

+25
-25
lines changed

packages/cdk-blue-green-container-deployment/src/__tests__/__snapshots__/dummy-task-definition.test.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Object {
1616
"Arn",
1717
],
1818
},
19-
"Runtime": "nodejs12.x",
19+
"Runtime": "nodejs16.x",
2020
"Timeout": 120,
2121
},
2222
"Type": "AWS::Lambda::Function",

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Object {
1616
"Arn",
1717
],
1818
},
19-
"Runtime": "nodejs12.x",
19+
"Runtime": "nodejs16.x",
2020
"Timeout": 120,
2121
},
2222
"Type": "AWS::Lambda::Function",
@@ -993,7 +993,7 @@ Object {
993993
"Arn",
994994
],
995995
},
996-
"Runtime": "nodejs12.x",
996+
"Runtime": "nodejs16.x",
997997
"Timeout": 120,
998998
},
999999
"Type": "AWS::Lambda::Function",

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Object {
1616
"Arn",
1717
],
1818
},
19-
"Runtime": "nodejs12.x",
19+
"Runtime": "nodejs16.x",
2020
"Timeout": 120,
2121
},
2222
"Type": "AWS::Lambda::Function",
@@ -78,7 +78,7 @@ Object {
7878
"Arn",
7979
],
8080
},
81-
"Runtime": "nodejs12.x",
81+
"Runtime": "nodejs16.x",
8282
"Timeout": 900,
8383
},
8484
"Type": "AWS::Lambda::Function",
@@ -1402,7 +1402,7 @@ Object {
14021402
"Arn",
14031403
],
14041404
},
1405-
"Runtime": "nodejs12.x",
1405+
"Runtime": "nodejs16.x",
14061406
"Timeout": 120,
14071407
},
14081408
"Type": "AWS::Lambda::Function",
@@ -1464,7 +1464,7 @@ Object {
14641464
"Arn",
14651465
],
14661466
},
1467-
"Runtime": "nodejs12.x",
1467+
"Runtime": "nodejs16.x",
14681468
"Timeout": 900,
14691469
},
14701470
"Type": "AWS::Lambda::Function",

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

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

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Object {
236236
"Arn",
237237
],
238238
},
239-
"Runtime": "nodejs12.x",
239+
"Runtime": "nodejs16.x",
240240
},
241241
"Type": "AWS::Lambda::Function",
242242
},
@@ -991,7 +991,7 @@ Object {
991991
"Arn",
992992
],
993993
},
994-
"Runtime": "nodejs12.x",
994+
"Runtime": "nodejs16.x",
995995
},
996996
"Type": "AWS::Lambda::Function",
997997
},
@@ -1151,7 +1151,7 @@ Object {
11511151
"Arn",
11521152
],
11531153
},
1154-
"Runtime": "nodejs12.x",
1154+
"Runtime": "nodejs16.x",
11551155
},
11561156
"Type": "AWS::Lambda::Function",
11571157
},
@@ -1893,7 +1893,7 @@ Object {
18931893
"Arn",
18941894
],
18951895
},
1896-
"Runtime": "nodejs12.x",
1896+
"Runtime": "nodejs16.x",
18971897
},
18981898
"Type": "AWS::Lambda::Function",
18991899
},

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

+1-1
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_12_X,
22+
runtime: Runtime.NODEJS_16_X,
2323
handler: 'index.handler',
2424
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'check-parameter')),
2525
});

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ Object {
373373
"Arn",
374374
],
375375
},
376-
"Runtime": "nodejs12.x",
376+
"Runtime": "nodejs16.x",
377377
},
378378
"Type": "AWS::Lambda::Function",
379379
},

packages/cdk-codepipeline-merge-action/src/merge-branches-function.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface MergeBranchesFunctionProps {
1919
export class MergeBranchesFunction extends Function {
2020
constructor(scope: Construct, id: string, props: MergeBranchesFunctionProps) {
2121
super(scope, id, {
22-
runtime: Runtime.NODEJS_12_X,
22+
runtime: Runtime.NODEJS_16_X,
2323
handler: 'index.handler',
2424
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'merge-branches')),
2525
});

packages/cdk-container-registry/src/__tests__/__snapshots__/image-repository.test.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Object {
2828
"Arn",
2929
],
3030
},
31-
"Runtime": "nodejs12.x",
31+
"Runtime": "nodejs16.x",
3232
"Timeout": 120,
3333
},
3434
"Type": "AWS::Lambda::Function",
@@ -165,7 +165,7 @@ Object {
165165
"Arn",
166166
],
167167
},
168-
"Runtime": "nodejs12.x",
168+
"Runtime": "nodejs16.x",
169169
},
170170
"Type": "AWS::Lambda::Function",
171171
},

packages/cdk-container-registry/src/image-repository.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class ImageRepository extends Repository {
6666
const rule = this.onImageScanCompleted(id, { imageTags });
6767

6868
const severityFilter = new Function(this, 'SevierityFilter', {
69-
runtime: Runtime.NODEJS_12_X,
69+
runtime: Runtime.NODEJS_16_X,
7070
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'severity-filter')),
7171
handler: 'index.handler',
7272
});

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Object {
6161
"Arn",
6262
],
6363
},
64-
"Runtime": "nodejs12.x",
64+
"Runtime": "nodejs16.x",
6565
"Timeout": 900,
6666
},
6767
"Type": "AWS::Lambda::Function",

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Object {
9292
"Arn",
9393
],
9494
},
95-
"Runtime": "nodejs12.x",
95+
"Runtime": "nodejs16.x",
9696
"Timeout": 120,
9797
},
9898
"Type": "AWS::Lambda::Function",
@@ -324,7 +324,7 @@ Object {
324324
"Arn",
325325
],
326326
},
327-
"Runtime": "nodejs12.x",
327+
"Runtime": "nodejs16.x",
328328
"Timeout": 120,
329329
},
330330
"Type": "AWS::Lambda::Function",

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Object {
1616
"Arn",
1717
],
1818
},
19-
"Runtime": "nodejs12.x",
19+
"Runtime": "nodejs16.x",
2020
"Timeout": 120,
2121
},
2222
"Type": "AWS::Lambda::Function",

packages/cdk-static-website/src/__tests__/__snapshots__/static-website.test.ts.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Object {
2929
"Arn",
3030
],
3131
},
32-
"Runtime": "nodejs12.x",
32+
"Runtime": "nodejs16.x",
3333
"Timeout": 900,
3434
},
3535
"Type": "AWS::Lambda::Function",
@@ -320,7 +320,7 @@ Object {
320320
"Arn",
321321
],
322322
},
323-
"Runtime": "nodejs12.x",
323+
"Runtime": "nodejs16.x",
324324
"Timeout": 900,
325325
},
326326
"Type": "AWS::Lambda::Function",
@@ -617,7 +617,7 @@ Object {
617617
"Arn",
618618
],
619619
},
620-
"Runtime": "nodejs12.x",
620+
"Runtime": "nodejs16.x",
621621
"Timeout": 900,
622622
},
623623
"Type": "AWS::Lambda::Function",

0 commit comments

Comments
 (0)