From 98d2e5fb518fad2334d6594e8e00e4a932399fac Mon Sep 17 00:00:00 2001 From: Kazuho Cryer-Shinozuka Date: Tue, 29 Oct 2024 10:06:24 +0900 Subject: [PATCH] fix: cannot deploy nodejs function (#8) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index ba6e35b..20d5033 100644 --- a/src/index.ts +++ b/src/index.ts @@ -87,7 +87,7 @@ export class ThingWithCert extends Construct { ); const onEventHandler = new nodejs.NodejsFunction(this, 'lambdaFunction', { - entry: join(__dirname, 'lambda', 'index.ts'), + entry: join(__dirname, 'lambda', 'index.js'), handler: 'handler', timeout: Duration.seconds(10), role,