From 96ad5a11adba69b33aa06b3e2ec7b57225fed8f9 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Fri, 25 Oct 2019 05:17:43 -0700 Subject: [PATCH] chore: update lambda.Runtime to NODEJS_10_X (#133) * chore: update lambda.Runtime to NODEJS_10_X Node.js 8.x EoL is on 31 Dec 2019 https://endoflife.date/nodejs * update dependencies --- typescript/api-cors-lambda-crud-dynamodb/index.ts | 10 +++++----- typescript/api-cors-lambda-crud-dynamodb/package.json | 4 ++-- typescript/application-load-balancer/package.json | 4 ++-- typescript/appsync-graphql-dynamodb/package.json | 4 ++-- typescript/classic-load-balancer/package.json | 4 ++-- typescript/custom-resource/package.json | 4 ++-- typescript/lambda-cron/package.json | 4 ++-- typescript/my-widget-service/package.json | 5 ++--- typescript/my-widget-service/widget_service.ts | 2 +- typescript/resource-overrides/package.json | 4 ++-- typescript/static-site/package.json | 4 ++-- typescript/stepfunctions-job-poller/package.json | 4 ++-- 12 files changed, 26 insertions(+), 27 deletions(-) diff --git a/typescript/api-cors-lambda-crud-dynamodb/index.ts b/typescript/api-cors-lambda-crud-dynamodb/index.ts index b072bc615..58e54d584 100644 --- a/typescript/api-cors-lambda-crud-dynamodb/index.ts +++ b/typescript/api-cors-lambda-crud-dynamodb/index.ts @@ -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' @@ -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' @@ -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' @@ -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' @@ -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' diff --git a/typescript/api-cors-lambda-crud-dynamodb/package.json b/typescript/api-cors-lambda-crud-dynamodb/package.json index fe7e6a39c..ff52807aa 100644 --- a/typescript/api-cors-lambda-crud-dynamodb/package.json +++ b/typescript/api-cors-lambda-crud-dynamodb/package.json @@ -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": "*", diff --git a/typescript/application-load-balancer/package.json b/typescript/application-load-balancer/package.json index baf3901fd..52d782b33 100644 --- a/typescript/application-load-balancer/package.json +++ b/typescript/application-load-balancer/package.json @@ -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": "*", diff --git a/typescript/appsync-graphql-dynamodb/package.json b/typescript/appsync-graphql-dynamodb/package.json index 1ee91a833..968178f1b 100644 --- a/typescript/appsync-graphql-dynamodb/package.json +++ b/typescript/appsync-graphql-dynamodb/package.json @@ -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": "*", diff --git a/typescript/classic-load-balancer/package.json b/typescript/classic-load-balancer/package.json index 28e196058..87a433e62 100644 --- a/typescript/classic-load-balancer/package.json +++ b/typescript/classic-load-balancer/package.json @@ -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": "*", diff --git a/typescript/custom-resource/package.json b/typescript/custom-resource/package.json index a15d37b4e..e35d28b69 100644 --- a/typescript/custom-resource/package.json +++ b/typescript/custom-resource/package.json @@ -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": "*", diff --git a/typescript/lambda-cron/package.json b/typescript/lambda-cron/package.json index 5b1017cd2..6d7703c71 100644 --- a/typescript/lambda-cron/package.json +++ b/typescript/lambda-cron/package.json @@ -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": "*", diff --git a/typescript/my-widget-service/package.json b/typescript/my-widget-service/package.json index 9732c051a..de8407c5f 100644 --- a/typescript/my-widget-service/package.json +++ b/typescript/my-widget-service/package.json @@ -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": "*", diff --git a/typescript/my-widget-service/widget_service.ts b/typescript/my-widget-service/widget_service.ts index 6fb18eb91..64cbbcc53 100644 --- a/typescript/my-widget-service/widget_service.ts +++ b/typescript/my-widget-service/widget_service.ts @@ -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: { diff --git a/typescript/resource-overrides/package.json b/typescript/resource-overrides/package.json index 71f6b5b3d..feb0fae05 100644 --- a/typescript/resource-overrides/package.json +++ b/typescript/resource-overrides/package.json @@ -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": "*", diff --git a/typescript/static-site/package.json b/typescript/static-site/package.json index 796e263c9..9035978a2 100644 --- a/typescript/static-site/package.json +++ b/typescript/static-site/package.json @@ -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": "*", diff --git a/typescript/stepfunctions-job-poller/package.json b/typescript/stepfunctions-job-poller/package.json index a2f012c2c..4c2709946 100644 --- a/typescript/stepfunctions-job-poller/package.json +++ b/typescript/stepfunctions-job-poller/package.json @@ -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": "*",