Skip to content

Commit

Permalink
chore: update lambda.Runtime to NODEJS_10_X (aws-samples#133)
Browse files Browse the repository at this point in the history
* chore: update lambda.Runtime to NODEJS_10_X

Node.js 8.x EoL is on 31 Dec 2019 https://endoflife.date/nodejs

* update dependencies
  • Loading branch information
trivikr authored and mergify[bot] committed Oct 25, 2019
1 parent e32d594 commit 96ad5a1
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 27 deletions.
10 changes: 5 additions & 5 deletions typescript/api-cors-lambda-crud-dynamodb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class ApiLambdaCrudDynamoDBStack extends cdk.Stack {
const getOneLambda = new lambda.Function(this, 'getOneItemFunction', {
code: new lambda.AssetCode('src'),
handler: 'get-one.handler',
runtime: lambda.Runtime.NODEJS_8_10,
runtime: lambda.Runtime.NODEJS_10_X,
environment: {
TABLE_NAME: dynamoTable.tableName,
PRIMARY_KEY: 'itemId'
Expand All @@ -33,7 +33,7 @@ export class ApiLambdaCrudDynamoDBStack extends cdk.Stack {
const getAllLambda = new lambda.Function(this, 'getAllItemsFunction', {
code: new lambda.AssetCode('src'),
handler: 'get-all.handler',
runtime: lambda.Runtime.NODEJS_8_10,
runtime: lambda.Runtime.NODEJS_10_X,
environment: {
TABLE_NAME: dynamoTable.tableName,
PRIMARY_KEY: 'itemId'
Expand All @@ -43,7 +43,7 @@ export class ApiLambdaCrudDynamoDBStack extends cdk.Stack {
const createOne = new lambda.Function(this, 'createItemFunction', {
code: new lambda.AssetCode('src'),
handler: 'create.handler',
runtime: lambda.Runtime.NODEJS_8_10,
runtime: lambda.Runtime.NODEJS_10_X,
environment: {
TABLE_NAME: dynamoTable.tableName,
PRIMARY_KEY: 'itemId'
Expand All @@ -53,7 +53,7 @@ export class ApiLambdaCrudDynamoDBStack extends cdk.Stack {
const updateOne = new lambda.Function(this, 'updateItemFunction', {
code: new lambda.AssetCode('src'),
handler: 'update-one.handler',
runtime: lambda.Runtime.NODEJS_8_10,
runtime: lambda.Runtime.NODEJS_10_X,
environment: {
TABLE_NAME: dynamoTable.tableName,
PRIMARY_KEY: 'itemId'
Expand All @@ -63,7 +63,7 @@ export class ApiLambdaCrudDynamoDBStack extends cdk.Stack {
const deleteOne = new lambda.Function(this, 'deleteItemFunction', {
code: new lambda.AssetCode('src'),
handler: 'delete-one.handler',
runtime: lambda.Runtime.NODEJS_8_10,
runtime: lambda.Runtime.NODEJS_10_X,
environment: {
TABLE_NAME: dynamoTable.tableName,
PRIMARY_KEY: 'itemId'
Expand Down
4 changes: 2 additions & 2 deletions typescript/api-cors-lambda-crud-dynamodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
},
"license": "MIT",
"devDependencies": {
"@types/node": "^8.10.38",
"typescript": "^3.2.4"
"@types/node": "^10.17.0",
"typescript": "~3.6.4"
},
"dependencies": {
"@aws-cdk/aws-apigateway": "*",
Expand Down
4 changes: 2 additions & 2 deletions typescript/application-load-balancer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^8.10.38",
"typescript": "^3.2.4"
"@types/node": "^10.17.0",
"typescript": "~3.6.4"
},
"dependencies": {
"@aws-cdk/aws-autoscaling": "*",
Expand Down
4 changes: 2 additions & 2 deletions typescript/appsync-graphql-dynamodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
},
"license": "MIT",
"devDependencies": {
"@types/node": "^8.10.38",
"typescript": "^3.2.4"
"@types/node": "^10.17.0",
"typescript": "~3.6.4"
},
"dependencies": {
"@aws-cdk/aws-appsync": "*",
Expand Down
4 changes: 2 additions & 2 deletions typescript/classic-load-balancer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^8.10.38",
"typescript": "^3.2.4"
"@types/node": "^10.17.0",
"typescript": "~3.6.4"
},
"dependencies": {
"@aws-cdk/aws-autoscaling": "*",
Expand Down
4 changes: 2 additions & 2 deletions typescript/custom-resource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^8.10.38",
"typescript": "^3.2.4"
"@types/node": "^10.17.0",
"typescript": "~3.6.4"
},
"dependencies": {
"@aws-cdk/aws-cloudformation": "*",
Expand Down
4 changes: 2 additions & 2 deletions typescript/lambda-cron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^8.10.38",
"typescript": "^3.2.4"
"@types/node": "^10.17.0",
"typescript": "~3.6.4"
},
"dependencies": {
"@aws-cdk/aws-events": "*",
Expand Down
5 changes: 2 additions & 3 deletions typescript/my-widget-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^8.9.4",
"typescript": "^3.1.2",
"aws-cdk": "*"
"@types/node": "^10.17.0",
"typescript": "~3.6.4"
},
"dependencies": {
"@aws-cdk/aws-apigateway": "*",
Expand Down
2 changes: 1 addition & 1 deletion typescript/my-widget-service/widget_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class WidgetService extends cdk.Construct {
});

const handler = new lambda.Function(this, "WidgetHandler", {
runtime: lambda.Runtime.NODEJS_8_10, // So we can use async in widget.js
runtime: lambda.Runtime.NODEJS_10_X, // So we can use async in widget.js
code: lambda.AssetCode.asset("resources"),
handler: "widgets.main",
environment: {
Expand Down
4 changes: 2 additions & 2 deletions typescript/resource-overrides/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^8.10.38",
"typescript": "^3.2.4"
"@types/node": "^10.17.0",
"typescript": "~3.6.4"
},
"dependencies": {
"@aws-cdk/aws-autoscaling": "*",
Expand Down
4 changes: 2 additions & 2 deletions typescript/static-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^10.9.4",
"typescript": "^3.2.4"
"@types/node": "^10.17.0",
"typescript": "~3.6.4"
},
"dependencies": {
"@aws-cdk/aws-certificatemanager": "*",
Expand Down
4 changes: 2 additions & 2 deletions typescript/stepfunctions-job-poller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^8.10.38",
"typescript": "^3.2.4"
"@types/node": "^10.17.0",
"typescript": "~3.6.4"
},
"dependencies": {
"@aws-cdk/aws-stepfunctions": "*",
Expand Down

0 comments on commit 96ad5a1

Please sign in to comment.