Skip to content

Commit 2c2773e

Browse files
author
Dinesh Sajwan
committed
feat(construct): memory size support for workshop
1 parent aaf9604 commit 2c2773e

File tree

1 file changed

+2
-2
lines changed
  • src/patterns/gen-ai/aws-contentgen-appsync-lambda

1 file changed

+2
-2
lines changed

src/patterns/gen-ai/aws-contentgen-appsync-lambda/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3';
2424
import { NagSuppressions } from 'cdk-nag';
2525
import { Construct } from 'constructs';
2626
import * as s3_bucket_helper from '../../../common/helpers/s3-bucket-helper';
27-
import { version } from '../../../common/helpers/utils';
27+
import { version,lambdaMemorySizeLimiter } from '../../../common/helpers/utils';
2828
import * as vpc_helper from '../../../common/helpers/vpc-helper';
2929

3030
/**
@@ -486,7 +486,7 @@ export class ContentGenerationAppSyncLambda extends Construct {
486486
tracing: lambda_tracing,
487487
vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS },
488488
securityGroups: [this.securityGroup],
489-
memorySize: 1_769 * 4,
489+
memorySize: lambdaMemorySizeLimiter(this, 1_769 * 4),
490490
timeout: Duration.minutes(15),
491491
role: generate_image_function_role,
492492
environment: {

0 commit comments

Comments
 (0)