From 21a1add9014589b15de3f5b3a7f7d4ccbb29c8ac Mon Sep 17 00:00:00 2001 From: Marc Gavanier Date: Tue, 21 Nov 2023 23:37:17 +0100 Subject: [PATCH] feat: set lambda timeout to 5 minutes --- api-lambda.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-lambda.tf b/api-lambda.tf index 7928631..ef3ef5c 100644 --- a/api-lambda.tf +++ b/api-lambda.tf @@ -24,7 +24,7 @@ resource "aws_lambda_function" "api_routes" { s3_key = "v0/${each.value.operationId}.zip" runtime = "nodejs18.x" handler = "index.handler" - timeout = 20 + timeout = 300 memory_size = 2048 role = aws_iam_role.api_route_execution_role.arn source_code_hash = local.s3_objects_map["v0/${each.value.operationId}.zip"].etag