From 04076abb6fbc207afa7f673782a7ea4aea07aef8 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Tue, 2 Nov 2021 09:50:25 +1300 Subject: [PATCH] perf: lower the lambda size as the timeout bug has been fixed --- packages/_infra/src/serve/lambda.tiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/_infra/src/serve/lambda.tiler.ts b/packages/_infra/src/serve/lambda.tiler.ts index 5602b1673..bdfedb9be 100644 --- a/packages/_infra/src/serve/lambda.tiler.ts +++ b/packages/_infra/src/serve/lambda.tiler.ts @@ -30,7 +30,7 @@ export class LambdaTiler extends cdk.Construct { this.lambda = new lambda.Function(this, 'Tiler', { vpc: props.vpc, runtime: lambda.Runtime.NODEJS_14_X, - memorySize: 4096, + memorySize: 2048, timeout: Duration.seconds(60), handler: 'index.handler', code: lambda.Code.fromAsset(CODE_PATH),