Skip to content

Commit

Permalink
added memory (#1202)
Browse files Browse the repository at this point in the history
  • Loading branch information
hickeydh-aws authored Dec 13, 2023
1 parent 60b5c15 commit 5e33f47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/deployments/cdk/src/deployments/sns/step-1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -224,6 +225,7 @@ function createSnsTopics(props: {
handler: 'index.createIgnoreAction',
code: lambdaCode,
role,
memorySize: 512,
timeout: cdk.Duration.minutes(15),
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 5e33f47

Please sign in to comment.