From 8ef605d6ea7d7e89b3773bc11fd77a3d25028abc Mon Sep 17 00:00:00 2001 From: abetomo Date: Thu, 18 Feb 2021 08:23:11 +0900 Subject: [PATCH] feat: switch from `nodejs12.x` to `nodejs14.x` `nodejs14.x` is also now supported. https://docs.aws.amazon.com/lambda/latest/dg/lambda-nodejs.html --- README.md | 2 +- src/warmer.js | 2 +- test/utils/configUtils.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 68ab361..5021795 100644 --- a/README.md +++ b/README.md @@ -246,7 +246,7 @@ The permissions can also be added to all lambdas using setting the role to `IamR ```yaml provider: name: aws - runtime: nodejs10.x + runtime: nodejs14.x iamRoleStatements: - Effect: 'Allow' Action: diff --git a/src/warmer.js b/src/warmer.js index ce5224e..0cf02cf 100644 --- a/src/warmer.js +++ b/src/warmer.js @@ -218,7 +218,7 @@ function addWarmUpFunctionToService(service, warmerName, warmerConfig) { handler: warmerConfig.pathHandler, memorySize: warmerConfig.memorySize, name: warmerConfig.name, - runtime: 'nodejs12.x', + runtime: 'nodejs14.x', package: warmerConfig.package, timeout: warmerConfig.timeout, ...(Object.keys(warmerConfig.environment).length diff --git a/test/utils/configUtils.js b/test/utils/configUtils.js index be6136a..1c9251a 100644 --- a/test/utils/configUtils.js +++ b/test/utils/configUtils.js @@ -66,7 +66,7 @@ function getExpectedFunctionConfig(options = {}) { handler: path.join('.warmup', warmerName, 'index.warmUp'), memorySize: 128, name: `warmup-test-dev-warmup-plugin-${warmerName}`, - runtime: 'nodejs12.x', + runtime: 'nodejs14.x', package: { individually: true, exclude: ['**'],