From 1994019e5ff44f1c00183d4f1f22384a6a03936e Mon Sep 17 00:00:00 2001 From: mrcyburai <61307175+mrcyburai@users.noreply.github.com> Date: Thu, 20 Feb 2020 22:33:19 -0800 Subject: [PATCH] Updated nodejs runtime to 12.x Lambda deprecated 8.10 runtime, upgraded the runtime nodejs-12.x. Tested the changes during the lab "Deploying a Scalable Serverless API with AWS CloudFormation". --- cloudformation/cf.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudformation/cf.json b/cloudformation/cf.json index fbfdc12..f37644a 100644 --- a/cloudformation/cf.json +++ b/cloudformation/cf.json @@ -74,7 +74,7 @@ "FunctionName" : "list", "Handler" : "list.list", "Role" : { "Fn::GetAtt" : ["LambdaExecutionRole", "Arn"] }, - "Runtime" : "nodejs8.10" + "Runtime" : "nodejs12.x" }, "DependsOn" : ["LambdaExecutionRole"] }, @@ -89,7 +89,7 @@ "FunctionName" : "get", "Handler" : "get.get", "Role" : { "Fn::GetAtt" : ["LambdaExecutionRole", "Arn"] }, - "Runtime" : "nodejs8.10" + "Runtime" : "nodejs12.x" }, "DependsOn" : ["LambdaExecutionRole"] },