From 5afc386267faf4d90dddae96515d9f82549a7342 Mon Sep 17 00:00:00 2001 From: kakakakakku Date: Sat, 13 Sep 2025 13:29:02 +0900 Subject: [PATCH] aws-ts-apigateway-lambda-serverless: Update runtime to NodeJS22dX --- aws-ts-apigateway-lambda-serverless/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aws-ts-apigateway-lambda-serverless/index.ts b/aws-ts-apigateway-lambda-serverless/index.ts index 9a3d53be4..55a6a846c 100644 --- a/aws-ts-apigateway-lambda-serverless/index.ts +++ b/aws-ts-apigateway-lambda-serverless/index.ts @@ -13,7 +13,7 @@ import handler from "./handler"; // Create Lambda functions for our API const handlerFunction = new aws.lambda.CallbackFunction("get-handler", { callback: handler, - runtime: aws.lambda.Runtime.NodeJS18dX, + runtime: aws.lambda.Runtime.NodeJS22dX, }); const postHandlerFunction = new aws.lambda.CallbackFunction("post-handler", { @@ -25,7 +25,7 @@ const postHandlerFunction = new aws.lambda.CallbackFunction("post-handler", { body: JSON.stringify({ message: "POST successful" }), }; }, - runtime: aws.lambda.Runtime.NodeJS18dX, + runtime: aws.lambda.Runtime.NodeJS22dX, }); const deleteHandlerFunction = new aws.lambda.CallbackFunction("delete-handler", { @@ -36,7 +36,7 @@ const deleteHandlerFunction = new aws.lambda.CallbackFunction("delete-handler", body: JSON.stringify({ message: "DELETE successful" }), }; }, - runtime: aws.lambda.Runtime.NodeJS18dX, + runtime: aws.lambda.Runtime.NodeJS22dX, }); // Create an API endpoint.