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),