Skip to content

Commit 5e33f47

Browse files
authored
added memory (#1202)
1 parent 60b5c15 commit 5e33f47

File tree

2 files changed

+3
-0
lines changed
  • src
    • deployments/cdk/src/deployments/sns
    • lib/custom-resources/logs-add-subscription-filter/src

2 files changed

+3
-0
lines changed

src/deployments/cdk/src/deployments/sns/step-1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ function createSnsTopics(props: {
206206
handler: 'index.createSnsPublishToCentralRegion',
207207
code: lambdaCode,
208208
role,
209+
memorySize: 512,
209210
environment: {
210211
CENTRAL_LOG_SERVICES_REGION: centralServicesRegion,
211212
CENTRAL_LOG_ACCOUNT: centralAccount,
@@ -224,6 +225,7 @@ function createSnsTopics(props: {
224225
handler: 'index.createIgnoreAction',
225226
code: lambdaCode,
226227
role,
228+
memorySize: 512,
227229
timeout: cdk.Duration.minutes(15),
228230
});
229231

src/lib/custom-resources/logs-add-subscription-filter/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ export class CentralLoggingSubscriptionFilter extends Construct {
141141
code: lambda.Code.fromAsset(lambdaDir),
142142
handler: 'index.handler',
143143
role: this.role,
144+
memorySize: 1024,
144145
environment: environment!,
145146
// Set timeout to maximum timeout
146147
timeout: cdk.Duration.minutes(15),

0 commit comments

Comments
 (0)