From 1238a2530da1eb4598b1efbfa196e412444448e0 Mon Sep 17 00:00:00 2001 From: Oguzhan Ozdemir Date: Tue, 9 Jul 2024 11:39:33 +0300 Subject: [PATCH] Update function nodejs version --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index e1d7525..b222bb8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -35,7 +35,7 @@ export class CloudWatchAlarmCreator extends Construct { functionName: `${this.prefix}alarms-cr-function${this.postfix}`, code: lambda.Code.fromAsset(path.join(__dirname, "functions")), handler: "index.handler", - runtime: lambda.Runtime.NODEJS_14_X, + runtime: lambda.Runtime.NODEJS_20_X, memorySize: 512, timeout: cdk.Duration.minutes(1), logRetention: log.RetentionDays.ONE_DAY,