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',