@@ -250,23 +250,24 @@ Resources:
250250 DependsOn :
251251 - AppLogGroups
252252 Properties :
253- Architectures : [x86_64 ]
253+ Architectures : [arm64 ]
254254 CodeUri : ../dist/lambda
255255 AutoPublishAlias : live
256256 Runtime : nodejs22.x
257257 Description : !Sub "${ApplicationFriendlyName} API Lambda"
258258 FunctionName : !Sub ${ApplicationPrefix}-lambda
259259 Handler : lambda.handler
260- MemorySize : 768
260+ MemorySize : 2048
261261 Role : !GetAtt AppSecurityRoles.Outputs.MainFunctionRoleArn
262262 Timeout : 60
263263 Environment :
264264 Variables :
265265 RunEnvironment : !Ref RunEnvironment
266266 EntraRoleArn : !GetAtt AppSecurityRoles.Outputs.EntraFunctionRoleArn
267267 LinkryKvArn : !GetAtt LinkryRecordsCloudfrontStore.Arn
268- AWS_CRT_NODEJS_BINARY_RELATIVE_PATH : node_modules/aws-crt/dist/bin/linux-x64 -glibc/aws-crt-nodejs.node
268+ AWS_CRT_NODEJS_BINARY_RELATIVE_PATH : node_modules/aws-crt/dist/bin/linux-arm64 -glibc/aws-crt-nodejs.node
269269 ORIGIN_VERIFY_KEY : !Join ['-', ['secret', !Select [4, !Split ['-', !Select [2, !Split ['/', !Ref AWS::StackId]]]]]]
270+ NODE_OPTIONS : --enable-source-maps
270271 VpcConfig :
271272 Ipv6AllowedForDualStack : !If [ShouldAttachVpc, True, !Ref AWS::NoValue]
272273 SecurityGroupIds :
@@ -292,14 +293,14 @@ Resources:
292293 DependsOn :
293294 - AppLogGroups
294295 Properties :
295- Architectures : [x86_64 ]
296+ Architectures : [arm64 ]
296297 CodeUri : ../dist/sqsConsumer
297298 AutoPublishAlias : live
298299 Runtime : nodejs22.x
299300 Description : !Sub "${ApplicationFriendlyName} SQS Lambda"
300301 FunctionName : !Sub ${ApplicationPrefix}-sqs-lambda
301302 Handler : index.handler
302- MemorySize : 512
303+ MemorySize : 2048
303304 Role :
304305 Fn::GetAtt : AppSecurityRoles.Outputs.SqsFunctionRoleArn
305306 Timeout : !Ref SqsLambdaTimeout
@@ -309,6 +310,7 @@ Resources:
309310 Variables :
310311 RunEnvironment : !Ref RunEnvironment
311312 EntraRoleArn : !GetAtt AppSecurityRoles.Outputs.EntraFunctionRoleArn
313+ NODE_OPTIONS : --enable-source-maps
312314 VpcConfig :
313315 Ipv6AllowedForDualStack : !If [ShouldAttachVpc, True, !Ref AWS::NoValue]
314316 SecurityGroupIds :
0 commit comments