diff --git a/infrastructure/src/api/checkpoints/create-chekpoint.ts b/infrastructure/src/api/checkpoints/create-chekpoint.ts index 5d3fe4f9..74340085 100644 --- a/infrastructure/src/api/checkpoints/create-chekpoint.ts +++ b/infrastructure/src/api/checkpoints/create-chekpoint.ts @@ -232,7 +232,7 @@ export class CreateCheckPointApi { handler: 'handler', timeout: Duration.seconds(900), role: this.role, - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, environment: { CHECKPOINT_TABLE: this.checkpointTable.tableName, @@ -252,7 +252,7 @@ export class CreateCheckPointApi { handler: 'handler', timeout: Duration.seconds(900), role: this.role, - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, ephemeralStorageSize: Size.mebibytes(10240), environment: { diff --git a/infrastructure/src/api/checkpoints/update-chekpoint.ts b/infrastructure/src/api/checkpoints/update-chekpoint.ts index e3e8c3ce..74a259bf 100644 --- a/infrastructure/src/api/checkpoints/update-chekpoint.ts +++ b/infrastructure/src/api/checkpoints/update-chekpoint.ts @@ -305,7 +305,7 @@ export class UpdateCheckPointApi { handler: 'handler', timeout: Duration.seconds(900), role: this.role, - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, ephemeralStorageSize: Size.mebibytes(10240), environment: { @@ -324,7 +324,7 @@ export class UpdateCheckPointApi { handler: 'handler', timeout: Duration.seconds(900), role: this.role, - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, environment: { CHECKPOINT_TABLE: this.checkpointTable.tableName, diff --git a/infrastructure/src/api/comfy/create_excute.ts b/infrastructure/src/api/comfy/create_excute.ts index c2887b5f..7734a32f 100644 --- a/infrastructure/src/api/comfy/create_excute.ts +++ b/infrastructure/src/api/comfy/create_excute.ts @@ -256,7 +256,7 @@ export class CreateExecuteApi { handler: 'handler', timeout: Duration.seconds(900), role: this.iamRole(), - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, ephemeralStorageSize: Size.gibibytes(10), environment: { diff --git a/infrastructure/src/api/comfy/delete_excutes.ts b/infrastructure/src/api/comfy/delete_excutes.ts index c02ab776..27709aee 100644 --- a/infrastructure/src/api/comfy/delete_excutes.ts +++ b/infrastructure/src/api/comfy/delete_excutes.ts @@ -118,7 +118,7 @@ export class DeleteExecutesApi { handler: 'handler', timeout: Duration.seconds(900), role: this.iamRole(), - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, ephemeralStorageSize: Size.gibibytes(10), environment: { diff --git a/infrastructure/src/api/comfy/merge_execute.ts b/infrastructure/src/api/comfy/merge_execute.ts index b4df499e..fd318b4d 100644 --- a/infrastructure/src/api/comfy/merge_execute.ts +++ b/infrastructure/src/api/comfy/merge_execute.ts @@ -136,7 +136,7 @@ export class MergeExecuteApi { handler: 'handler', timeout: Duration.seconds(900), role: this.iamRole(), - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, ephemeralStorageSize: Size.gibibytes(10), environment: { diff --git a/infrastructure/src/api/inferences/create-inference-job.ts b/infrastructure/src/api/inferences/create-inference-job.ts index 74750c6b..9f2001ef 100644 --- a/infrastructure/src/api/inferences/create-inference-job.ts +++ b/infrastructure/src/api/inferences/create-inference-job.ts @@ -328,7 +328,7 @@ export class CreateInferenceJobApi { runtime: Runtime.PYTHON_3_10, index: 'create_inference_job.py', handler: 'handler', - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, ephemeralStorageSize: Size.gibibytes(10), timeout: Duration.seconds(900), diff --git a/infrastructure/src/api/inferences/start-inference-job.ts b/infrastructure/src/api/inferences/start-inference-job.ts index e895f3c3..689af95d 100644 --- a/infrastructure/src/api/inferences/start-inference-job.ts +++ b/infrastructure/src/api/inferences/start-inference-job.ts @@ -184,7 +184,7 @@ export class StartInferenceJobApi { runtime: Runtime.PYTHON_3_10, index: 'start_inference_job.py', handler: 'handler', - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, ephemeralStorageSize: Size.gibibytes(10), timeout: Duration.seconds(900), diff --git a/infrastructure/src/api/trainings/create-training-job.ts b/infrastructure/src/api/trainings/create-training-job.ts index f148c7a2..03b2006e 100644 --- a/infrastructure/src/api/trainings/create-training-job.ts +++ b/infrastructure/src/api/trainings/create-training-job.ts @@ -349,7 +349,7 @@ export class CreateTrainingJobApi { handler: 'handler', timeout: Duration.seconds(900), role: this.lambdaRole(), - memorySize: 3070, + memorySize: 3000, tracing: Tracing.ACTIVE, environment: { TRAIN_TABLE: this.props.trainTable.tableName, diff --git a/infrastructure/src/comfy/comfy-api-stack.ts b/infrastructure/src/comfy/comfy-api-stack.ts index e1ab4b84..36c12ce7 100644 --- a/infrastructure/src/comfy/comfy-api-stack.ts +++ b/infrastructure/src/comfy/comfy-api-stack.ts @@ -196,7 +196,7 @@ export class ComfyApiStack extends Construct { runtime: lambda.Runtime.PYTHON_3_10, handler: 'handler', index: 'execute_async_events.py', - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, ephemeralStorageSize: Size.gibibytes(10), timeout: Duration.seconds(900), diff --git a/infrastructure/src/events/cloudwatch-event.ts b/infrastructure/src/events/cloudwatch-event.ts index 108d30de..d1c39c07 100644 --- a/infrastructure/src/events/cloudwatch-event.ts +++ b/infrastructure/src/events/cloudwatch-event.ts @@ -33,7 +33,7 @@ export class EndpointsCloudwatchEvents { handler: 'handler', timeout: Duration.seconds(900), role: this.iamRole(), - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, layers: [this.layer], }); diff --git a/infrastructure/src/events/endpoints-event.ts b/infrastructure/src/events/endpoints-event.ts index e7afbc1f..958b2eda 100644 --- a/infrastructure/src/events/endpoints-event.ts +++ b/infrastructure/src/events/endpoints-event.ts @@ -103,7 +103,7 @@ export class SagemakerEndpointEvents { handler: 'handler', timeout: Duration.seconds(900), role: this.iamRole(), - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, layers: [this.layer], }); diff --git a/infrastructure/src/shared/inference.ts b/infrastructure/src/shared/inference.ts index 1209547f..f74dd213 100644 --- a/infrastructure/src/shared/inference.ts +++ b/infrastructure/src/shared/inference.ts @@ -154,7 +154,7 @@ export class Inference { runtime: lambda.Runtime.PYTHON_3_10, handler: 'handler', index: 'inference_async_events.py', - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, ephemeralStorageSize: Size.gibibytes(10), timeout: Duration.seconds(900), diff --git a/infrastructure/src/shared/resource-provider.ts b/infrastructure/src/shared/resource-provider.ts index 7d13dbe5..5e1fb284 100644 --- a/infrastructure/src/shared/resource-provider.ts +++ b/infrastructure/src/shared/resource-provider.ts @@ -35,7 +35,7 @@ export class ResourceProvider extends Construct { }, timeout: Duration.seconds(900), role: this.role, - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, environment: { ROLE_ARN: this.role.roleArn, diff --git a/infrastructure/src/shared/resource-waiter.ts b/infrastructure/src/shared/resource-waiter.ts index e6407132..f32d67bf 100644 --- a/infrastructure/src/shared/resource-waiter.ts +++ b/infrastructure/src/shared/resource-waiter.ts @@ -32,7 +32,7 @@ export class ResourceWaiter extends Construct { }, timeout: Duration.seconds(900), role: role, - memorySize: 3070, + memorySize: 3000, tracing: aws_lambda.Tracing.ACTIVE, });