From 2246be51be79e1707fc99c44fb6bb22585f82a3e Mon Sep 17 00:00:00 2001 From: Adam Stroud Date: Fri, 7 Jul 2023 00:04:24 -0400 Subject: [PATCH] Update NodeJS runtime to use a non-deprecated version fixes #880. --- typescript/cognito-api-lambda/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/cognito-api-lambda/index.ts b/typescript/cognito-api-lambda/index.ts index 06f236f17..92f1bf55f 100644 --- a/typescript/cognito-api-lambda/index.ts +++ b/typescript/cognito-api-lambda/index.ts @@ -11,7 +11,7 @@ export class CognitoProtectedApi extends Stack { const helloWorldFunction = new Function(this, 'helloWorldFunction', { code: new AssetCode('src'), handler: 'helloworld.handler', - runtime: Runtime.NODEJS_12_X + runtime: Runtime.NODEJS_18_X }); // Rest API backed by the helloWorldFunction