From ab78aaef91bffb811ec2dc05c0c1ffa84d41d4e6 Mon Sep 17 00:00:00 2001 From: Lucian Hymer <lucian@gitcoin.co> Date: Thu, 23 Jan 2025 11:39:44 -0700 Subject: [PATCH] chore(api): increasing memory for embed lambdas --- infra/aws/embed/lambda_generic.ts | 16 ++++++---------- infra/aws/embed/rate_limit.ts | 2 +- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/infra/aws/embed/lambda_generic.ts b/infra/aws/embed/lambda_generic.ts index fa4f931a0..bcaa20008 100644 --- a/infra/aws/embed/lambda_generic.ts +++ b/infra/aws/embed/lambda_generic.ts @@ -90,7 +90,7 @@ export function createEmbedLambdaGeneric(config: { {} ), }, - memorySize: 128, + memorySize: 512, timeout: 60, layers: [config.lambdaLayerArn], tags: { @@ -123,14 +123,11 @@ export function createEmbedLambdaGeneric(config: { }); /////////////////////////////////////////////////////////////////////////// - const lambdaTargetGroup = new aws.lb.TargetGroup( - `${config.name}-lambda-tg`, - { - name: `${config.name}-lambda-target-group`, - targetType: "lambda", - tags: { ...defaultTags, Name: `${config.name}-lambda` }, - } - ); + const lambdaTargetGroup = new aws.lb.TargetGroup(`${config.name}-lambda-tg`, { + name: `${config.name}-lambda-target-group`, + targetType: "lambda", + tags: { ...defaultTags, Name: `${config.name}-lambda` }, + }); const withLb = new aws.lambda.Permission(`${config.name}-lambda-permission`, { action: "lambda:InvokeFunction", @@ -149,7 +146,6 @@ export function createEmbedLambdaGeneric(config: { } ); - const targetPassportRule = new ListenerRule(`${config.name}-rule-lambda`, { tags: { ...defaultTags, Name: `${config.name}-rule-lambda` }, listenerArn: config.httpsListenerArn, diff --git a/infra/aws/embed/rate_limit.ts b/infra/aws/embed/rate_limit.ts index d81b835df..b182e2f67 100644 --- a/infra/aws/embed/rate_limit.ts +++ b/infra/aws/embed/rate_limit.ts @@ -86,7 +86,7 @@ export function createEmbedLambdaRateLimit(config: { {} ), }, - memorySize: 128, + memorySize: 1024, timeout: 60, layers: [config.lambdaLayerArn], tags: {