From 7aae986c27dc81691cdd1c254e21e1b1c6a3b1d7 Mon Sep 17 00:00:00 2001 From: hickeydh-aws <88673813+hickeydh-aws@users.noreply.github.com> Date: Tue, 12 Dec 2023 18:42:10 -0600 Subject: [PATCH] added memory --- src/deployments/cdk/src/deployments/sns/step-1.ts | 2 ++ .../custom-resources/logs-add-subscription-filter/src/index.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/deployments/cdk/src/deployments/sns/step-1.ts b/src/deployments/cdk/src/deployments/sns/step-1.ts index 1137a02b6..4df93182f 100644 --- a/src/deployments/cdk/src/deployments/sns/step-1.ts +++ b/src/deployments/cdk/src/deployments/sns/step-1.ts @@ -206,6 +206,7 @@ function createSnsTopics(props: { handler: 'index.createSnsPublishToCentralRegion', code: lambdaCode, role, + memorySize: 512, environment: { CENTRAL_LOG_SERVICES_REGION: centralServicesRegion, CENTRAL_LOG_ACCOUNT: centralAccount, @@ -224,6 +225,7 @@ function createSnsTopics(props: { handler: 'index.createIgnoreAction', code: lambdaCode, role, + memorySize: 512, timeout: cdk.Duration.minutes(15), }); diff --git a/src/lib/custom-resources/logs-add-subscription-filter/src/index.ts b/src/lib/custom-resources/logs-add-subscription-filter/src/index.ts index 8c386441c..92226c9dc 100644 --- a/src/lib/custom-resources/logs-add-subscription-filter/src/index.ts +++ b/src/lib/custom-resources/logs-add-subscription-filter/src/index.ts @@ -141,6 +141,7 @@ export class CentralLoggingSubscriptionFilter extends Construct { code: lambda.Code.fromAsset(lambdaDir), handler: 'index.handler', role: this.role, + memorySize: 1024, environment: environment!, // Set timeout to maximum timeout timeout: cdk.Duration.minutes(15),