File tree 1 file changed +2
-2
lines changed
src/patterns/gen-ai/aws-contentgen-appsync-lambda
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import * as s3 from 'aws-cdk-lib/aws-s3';
24
24
import { NagSuppressions } from 'cdk-nag' ;
25
25
import { Construct } from 'constructs' ;
26
26
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' ;
28
28
import * as vpc_helper from '../../../common/helpers/vpc-helper' ;
29
29
30
30
/**
@@ -486,7 +486,7 @@ export class ContentGenerationAppSyncLambda extends Construct {
486
486
tracing : lambda_tracing ,
487
487
vpcSubnets : { subnetType : ec2 . SubnetType . PRIVATE_WITH_EGRESS } ,
488
488
securityGroups : [ this . securityGroup ] ,
489
- memorySize : 1_769 * 4 ,
489
+ memorySize : lambdaMemorySizeLimiter ( this , 1_769 * 4 ) ,
490
490
timeout : Duration . minutes ( 15 ) ,
491
491
role : generate_image_function_role ,
492
492
environment : {
You can’t perform that action at this time.
0 commit comments