Skip to content

Commit

Permalink
Upgrade all code to use NODEJS_16_X instead of NODEJS_12_X.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbp committed Oct 7, 2022
1 parent 1d62bbb commit 85fcc7b
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -993,7 +993,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -78,7 +78,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 900,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -1402,7 +1402,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -1464,7 +1464,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 900,
},
"Type": "AWS::Lambda::Function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down Expand Up @@ -991,7 +991,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down Expand Up @@ -1151,7 +1151,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down Expand Up @@ -1893,7 +1893,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface CheckParamterFunctionProps {
export class CheckParameterFunction extends Function {
constructor(scope: Construct, id: string, props: CheckParamterFunctionProps) {
super(scope, id, {
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
handler: 'index.handler',
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'check-parameter')),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface MergeBranchesFunctionProps {
export class MergeBranchesFunction extends Function {
constructor(scope: Construct, id: string, props: MergeBranchesFunctionProps) {
super(scope, id, {
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
handler: 'index.handler',
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'merge-branches')),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -165,7 +165,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
},
"Type": "AWS::Lambda::Function",
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cdk-container-registry/src/image-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class ImageRepository extends Repository {
const rule = this.onImageScanCompleted(id, { imageTags });

const severityFilter = new Function(this, 'SevierityFilter', {
runtime: Runtime.NODEJS_12_X,
runtime: Runtime.NODEJS_16_X,
code: Code.fromAsset(path.join(__dirname, 'lambdas', 'severity-filter')),
handler: 'index.handler',
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 900,
},
"Type": "AWS::Lambda::Function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -324,7 +324,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 120,
},
"Type": "AWS::Lambda::Function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 900,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -320,7 +320,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 900,
},
"Type": "AWS::Lambda::Function",
Expand Down Expand Up @@ -617,7 +617,7 @@ Object {
"Arn",
],
},
"Runtime": "nodejs12.x",
"Runtime": "nodejs16.x",
"Timeout": 900,
},
"Type": "AWS::Lambda::Function",
Expand Down

0 comments on commit 85fcc7b

Please sign in to comment.