From 984c05b69fe0fbeea3c73312de8e015acfad743d Mon Sep 17 00:00:00 2001 From: David Siaw Date: Fri, 18 Aug 2023 04:51:21 +0900 Subject: [PATCH 1/2] update to new version of node in lambda --- app/models/heritage.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/heritage.rb b/app/models/heritage.rb index 3539efc5..4251ce50 100644 --- a/app/models/heritage.rb +++ b/app/models/heritage.rb @@ -50,7 +50,7 @@ def build_resources add_resource("AWS::Lambda::Function", "ScheduleHandler") do |j| j.Handler "index.handler" j.Role get_attr("ScheduleHandlerRole", "Arn") - j.Runtime "nodejs12.x" + j.Runtime "nodejs18.x" j.Timeout 60 j.Code do |j| j.ZipFile schedule_handler_code From f1ae5c949768e214fadb5da94cf976195983c27b Mon Sep 17 00:00:00 2001 From: David Siaw Date: Fri, 18 Aug 2023 04:52:46 +0900 Subject: [PATCH 2/2] update node ver for slack notifs too --- app/models/notification_stack.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/notification_stack.rb b/app/models/notification_stack.rb index 46e9e409..3debca30 100644 --- a/app/models/notification_stack.rb +++ b/app/models/notification_stack.rb @@ -64,7 +64,7 @@ def build_resources j.DISTRICT stack.district.name end end - j.Runtime "nodejs12.x" + j.Runtime "nodejs18.x" j.Code do |j| j.ZipFile slack_notification_code end