Skip to content

Commit

Permalink
chore(Upgrade NodeJS versions): Change all references to NodeJS 14 (#556
Browse files Browse the repository at this point in the history
)

* Replaced NODEJS_14_X

* update NODE 12 to NODE 14

* Fix inadverent changes to V2 issues
  • Loading branch information
biffgaut authored Dec 21, 2021
1 parent 9026520 commit bf45829
Show file tree
Hide file tree
Showing 157 changed files with 367 additions and 367 deletions.
2 changes: 1 addition & 1 deletion source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"jsii-pacmak": "1.47.0",
"tslint": "^5.20.1",
"typescript": "~3.9.7",
"aws-cdk-migration": "^1.136.0"
"aws-cdk-migration": "^1.135.0"
},
"devDependencies": {
"lerna": "^3.22.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Here is a minimal deployable pattern definition in Typescript:
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test('Test new load balancer and new lambda function', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand Down Expand Up @@ -106,7 +106,7 @@ test('Test new load balancer and new lambda function for HTTP api', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand Down Expand Up @@ -154,7 +154,7 @@ test('Test existing load balancer and new lambda function', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand Down Expand Up @@ -198,7 +198,7 @@ test('Test new load balancer and existing lambda function', () => {

const lambdaFunction = new lambda.Function(stack, 'existing-function', {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler',
functionName: testFunctionName,
vpc: testExistingVpc
Expand Down Expand Up @@ -254,7 +254,7 @@ test("Test existing load balancer and existing lambda function", () => {

const lambdaFunction = new lambda.Function(stack, "existing-function", {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: "index.handler",
functionName: testFunctionName,
vpc: testExistingVpc,
Expand Down Expand Up @@ -307,7 +307,7 @@ test('Test new load balancer and new lambda function', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler',
functionName: testFunctionName,
},
Expand Down Expand Up @@ -353,7 +353,7 @@ test('Test HTTPS adding 2 lambda targets, second with rules', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand All @@ -366,7 +366,7 @@ test('Test HTTPS adding 2 lambda targets, second with rules', () => {
const secondProps: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
ruleProps: {
Expand Down Expand Up @@ -422,7 +422,7 @@ test('Test HTTP adding 2 lambda targets, second with rules', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand All @@ -435,7 +435,7 @@ test('Test HTTP adding 2 lambda targets, second with rules', () => {
const secondProps: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
ruleProps: {
Expand Down Expand Up @@ -491,7 +491,7 @@ test('Test new load balancer and new lambda function', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand Down Expand Up @@ -533,7 +533,7 @@ test('Test logging turned off', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand All @@ -559,7 +559,7 @@ test('Check Properties', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand All @@ -584,7 +584,7 @@ test('Test custom ALB properties', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand Down Expand Up @@ -627,7 +627,7 @@ test('Test custom logging bucket', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand Down Expand Up @@ -673,7 +673,7 @@ test('Test providing certificateArns is an error', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand Down Expand Up @@ -701,7 +701,7 @@ test('Test logging off with logBucketProperties provided is an error', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand Down Expand Up @@ -730,7 +730,7 @@ test('Test certificate with HTTP is an error', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand All @@ -753,7 +753,7 @@ test('Test new ALB with no listenerProps is an error', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
publicApi: true
Expand Down Expand Up @@ -781,7 +781,7 @@ test('Test existing ALB with no listener with no listenerProps is an error', ()
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
existingLoadBalancerObj: existingAlb,
Expand All @@ -803,7 +803,7 @@ test('Test existing ALB with a listener with listenerProps is an error', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand All @@ -816,7 +816,7 @@ test('Test existing ALB with a listener with listenerProps is an error', () => {
const secondProps: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
ruleProps: {
Expand Down Expand Up @@ -846,7 +846,7 @@ test('Test second target with no rules is an error', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand All @@ -859,7 +859,7 @@ test('Test second target with no rules is an error', () => {
const secondProps: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
existingVpc: firstConstruct.vpc,
Expand All @@ -881,7 +881,7 @@ test('Test no cert for an HTTPS listener is an error', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand Down Expand Up @@ -910,7 +910,7 @@ test('Test existingLoadBalancerObj and loadBalancerProps is an error', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand Down Expand Up @@ -945,7 +945,7 @@ test('Test existingLoadBalancerObj and no existingVpc is an error', () => {
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@
}
},
"Handler": "index.handler",
"Runtime": "nodejs12.x",
"Runtime": "nodejs14.x",
"TracingConfig": {
"Mode": "Active"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const testSg = new SecurityGroup(stack, 'lambda-sg', { vpc: myVpc, allowAllOutbo
const lambdaFunction = defaults.buildLambdaFunction(stack, {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler',
vpc: myVpc,
securityGroups: [ testSg ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
}
},
"Handler": "index.handler",
"Runtime": "nodejs12.x",
"Runtime": "nodejs14.x",
"TracingConfig": {
"Mode": "Active"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ stack.templateOptions.description = 'Integration Test for HTTP API with a new fu
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@
}
},
"Handler": "index.handler",
"Runtime": "nodejs12.x",
"Runtime": "nodejs14.x",
"TracingConfig": {
"Mode": "Active"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const testSg = new SecurityGroup(stack, 'lambda-sg', { vpc: myVpc, allowAllOutbo
const lambdaFunction = defaults.buildLambdaFunction(stack, {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler',
vpc: myVpc,
securityGroups: [ testSg ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@
}
},
"Handler": "index.handler",
"Runtime": "nodejs12.x",
"Runtime": "nodejs14.x",
"TracingConfig": {
"Mode": "Active"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ stack.templateOptions.description = 'Integration Test for public HTTP API with a
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@
}
},
"Handler": "index.handler",
"Runtime": "nodejs12.x",
"Runtime": "nodejs14.x",
"TracingConfig": {
"Mode": "Active"
},
Expand Down Expand Up @@ -1323,7 +1323,7 @@
}
},
"Handler": "index.handler",
"Runtime": "nodejs12.x",
"Runtime": "nodejs14.x",
"TracingConfig": {
"Mode": "Active"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ stack.templateOptions.description = 'Integration test for alb with 2 Lambda targ
const props: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
listenerProps: {
Expand All @@ -47,7 +47,7 @@ const firstConstruct = new AlbToLambda(stack, 'test-one', props);
const secondProps: AlbToLambdaProps = {
lambdaFunctionProps: {
code: lambda.Code.fromAsset(`${__dirname}/lambda`),
runtime: lambda.Runtime.NODEJS_12_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler'
},
ruleProps: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { ApiGatewayToLambda } from '@aws-solutions-constructs/aws-apigateway-lam

new ApiGatewayToLambda(this, 'ApiGatewayToLambdaPattern', {
lambdaFunctionProps: {
runtime: lambda.Runtime.NODEJS_10_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler',
code: lambda.Code.fromAsset(`${__dirname}/lambda`)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ test('Test properties', () => {
const stack = new Stack();
const props: ApiGatewayToLambdaProps = {
lambdaFunctionProps: {
runtime: lambda.Runtime.NODEJS_10_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler',
code: lambda.Code.fromAsset(`${__dirname}/lambda`)
}
Expand Down Expand Up @@ -115,7 +115,7 @@ test('Test deployment ApiGateway AuthorizationType override', () => {
}
},
lambdaFunctionProps: {
runtime: lambda.Runtime.NODEJS_10_X,
runtime: lambda.Runtime.NODEJS_14_X,
handler: 'index.handler',
code: lambda.Code.fromAsset(`${__dirname}/lambda`)
}
Expand Down
Loading

0 comments on commit bf45829

Please sign in to comment.