diff --git a/java/cdk/src/main/java/sleeper/cdk/stack/TransactionLogSnapshotStack.java b/java/cdk/src/main/java/sleeper/cdk/stack/TransactionLogSnapshotStack.java index 187555a5d3..966573d9df 100644 --- a/java/cdk/src/main/java/sleeper/cdk/stack/TransactionLogSnapshotStack.java +++ b/java/cdk/src/main/java/sleeper/cdk/stack/TransactionLogSnapshotStack.java @@ -123,7 +123,7 @@ private void createSnapshotCreationLambda(InstanceProperties instanceProperties, .queue(deadLetterQueue) .build()) .fifo(true) - .visibilityTimeout(Duration.seconds(70)) + .visibilityTimeout(Duration.seconds(instanceProperties.getInt(TRANSACTION_LOG_SNAPSHOT_CREATION_LAMBDA_TIMEOUT_IN_SECONDS))) .build(); instanceProperties.set(TRANSACTION_LOG_SNAPSHOT_CREATION_QUEUE_URL, queue.getQueueUrl()); instanceProperties.set(TRANSACTION_LOG_SNAPSHOT_CREATION_QUEUE_ARN, queue.getQueueArn());