From b7182f5ae7b7e02993e2ce134e59ae21ae9d7899 Mon Sep 17 00:00:00 2001 From: "Y.H LIEN" <85728908+LIEN-YUHSIANG@users.noreply.github.com> Date: Mon, 9 Oct 2023 22:52:22 +0900 Subject: [PATCH] fix: adsApi lambda function problem (#342) --- lib/constructs/common/lambda-functions.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/lib/constructs/common/lambda-functions.ts b/lib/constructs/common/lambda-functions.ts index 7ddf0bf5e..2457dfc8b 100644 --- a/lib/constructs/common/lambda-functions.ts +++ b/lib/constructs/common/lambda-functions.ts @@ -812,7 +812,7 @@ export class ForumCommentFunctions extends Construct { export class ThreadImageProcessFunctions extends Construct { // readonly getFunction: lambda.Function; - readonly syncImageFunction: lambda.Function; + // readonly syncImageFunction: lambda.Function; readonly resizeImageFunction: lambda.Function; // readonly deleteFunction: lambda.Function; @@ -877,19 +877,6 @@ export class ThreadImageProcessFunctions extends Construct { }, ); - this.syncImageFunction = new lambda_py.PythonFunction(this, 'sync-image', { - entry: 'src/lambda/sync-image', - description: - 'post image to dyanamo db database when image inputed in s3 bucket', - functionName: 'sync-image', - logRetention: logs.RetentionDays.ONE_MONTH, - memorySize: 256, - role: DBSyncRole, - runtime: lambda.Runtime.PYTHON_3_9, - timeout: Duration.seconds(5), - environment: props.envVars, - }); - this.resizeImageFunction = new lambda_py.PythonFunction( this, 'resize-image',