Skip to content

Commit

Permalink
fix: upgrade node runtime to 14
Browse files Browse the repository at this point in the history
As we approach the EOL for node 12 security updates new
lambdas should be ideally be on node 14
  • Loading branch information
Michael Brewer committed Jul 10, 2021
1 parent 0c0adfb commit 274bc58
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
}
},
"Handler": "index.handler",
"Runtime": "nodejs12.x",
"Runtime": "nodejs14.x",
"Timeout": "300",
"Role": {
"Fn::GetAtt": ["LambdaExecutionRole", "Arn"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ Resources:
- ' }'
- '};'
Handler: index.handler
Runtime: nodejs12.x
Runtime: nodejs14.x
Timeout: '300'
Role: !GetAtt
- UserPoolClientRole
Expand Down Expand Up @@ -507,7 +507,7 @@ Resources:
Handler: index.handler
Runtime: nodejs12.x
Runtime: nodejs14.x
Timeout: '300'
Role: !GetAtt
- UserPoolClientRole
Expand Down Expand Up @@ -659,7 +659,7 @@ Resources:
- '} '
Handler: index.handler
Runtime: nodejs12.x
Runtime: nodejs14.x
Timeout: '300'
Role: !GetAtt
- UserPoolClientRole
Expand Down Expand Up @@ -758,7 +758,7 @@ Resources:
- '}'
Handler: index.handler
Runtime: nodejs12.x
Runtime: nodejs14.x
Timeout: '300'
Role: !GetAtt
- UserPoolClientRole
Expand Down Expand Up @@ -879,7 +879,7 @@ Resources:
- ' }'
- '};'
Handler: index.handler
Runtime: nodejs12.x
Runtime: nodejs14.x
Timeout: '300'
Role: !GetAtt
- MFALambdaRole
Expand Down Expand Up @@ -1039,7 +1039,7 @@ Resources:
- ' }'
- '};'
Handler: index.handler
Runtime: nodejs12.x
Runtime: nodejs14.x
Timeout: '300'
Role: !GetAtt
- OpenIdLambdaRole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
}
},
"Handler": "index.handler",
"Runtime": "nodejs12.x",
"Runtime": "nodejs14.x",
"Timeout": "300",
"Role": {
"Fn::GetAtt": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ function generateLambdaAccessForRekognition(identifyCFNFile, functionName, s3Res
},
},
Handler: 'index.handler',
Runtime: 'nodejs12.x',
Runtime: 'nodejs14.x',
Timeout: '300',
Role: {
'Fn::GetAtt': ['CollectionsLambdaExecutionRole', 'Arn'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
}
},
"Handler": "index.handler",
"Runtime": "nodejs12.x",
"Runtime": "nodejs14.x",
"Timeout": "300",
"Role": {
"Fn::GetAtt": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('nodejs version migration tests', () => {

fs.writeFileSync(projectConfigFileName, projectConfigContent, 'utf-8');

// Write back the nodejs version to 'node10.x' to test migration
// Write back the nodejs version to 'node12.x' to test migration
const authResourceName = Object.keys(meta.auth)[0];
const authStackFileName = path.join(
projectRoot,
Expand Down

0 comments on commit 274bc58

Please sign in to comment.