more memory?

This commit is contained in:
Jun-te kim 2025-08-20 11:04:47 +00:00
parent c000ce4704
commit 56f9ffb0ed
2 changed files with 6 additions and 2 deletions

View file

@ -213,7 +213,7 @@ def handler(event, context):
json_uri,
)
print("job completed successfully")
except Exception as e:
print(f"❌ Error: {e}")
return {

View file

@ -59,7 +59,11 @@ resource "aws_lambda_function" "extractor_and_loader" {
role = data.aws_iam_role.lambda_exec_role.arn
package_type = "Image"
image_uri = "${data.aws_ecr_repository.extractor_and_loader.repository_url}:${var.lambda_image_tag}"
timeout = 30
# Increase timeout (max 900 sec / 15 min)
timeout = 300 # e.g. 5 minutes
# Increase memory (default 128 MB)
memory_size = 2048 # try 1024 or 2048 MB to start
}
# SQS trigger