Skip to content

Commit 7528449

Browse files
committed
Reapply "Force only one concurrent execution of sync engine"
This reverts commit 5c67705.
1 parent 95b3c93 commit 7528449

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

terraform/modules/dirsync/main.tf

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,18 @@ resource "aws_iam_role_policy_attachment" "this" {
5656
}
5757

5858
resource "aws_lambda_function" "this" {
59-
depends_on = [aws_cloudwatch_log_group.this]
60-
function_name = local.sync_lambda_name
61-
role = aws_iam_role.this.arn
62-
architectures = ["arm64"]
63-
handler = "sync.handler"
64-
runtime = "nodejs22.x"
65-
filename = data.archive_file.lambda_code.output_path
66-
timeout = 900
67-
memory_size = 2048
68-
source_code_hash = data.archive_file.lambda_code.output_sha256
69-
description = "GSuite Sync Lambda."
59+
depends_on = [aws_cloudwatch_log_group.this]
60+
function_name = local.sync_lambda_name
61+
role = aws_iam_role.this.arn
62+
architectures = ["arm64"]
63+
handler = "sync.handler"
64+
runtime = "nodejs22.x"
65+
filename = data.archive_file.lambda_code.output_path
66+
timeout = 900
67+
memory_size = 2048
68+
source_code_hash = data.archive_file.lambda_code.output_sha256
69+
reserved_concurrent_executions = 1
70+
description = "GSuite Sync Lambda."
7071
environment {
7172
variables = {
7273
"RunEnvironment" = var.RunEnvironment

0 commit comments

Comments
 (0)