Skip to content

Commit

Permalink
rightsize the lambda (I hope)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-butcher committed Jul 17, 2024
1 parent 350a386 commit 2f3c51c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5,752 deletions.
Binary file modified terraform/lambda.zip
Binary file not shown.
7 changes: 5 additions & 2 deletions terraform/modules/transferrer_lambda/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
lambda_name = "editorial-photography-transfer-${var.environment}"
lambda_timeout = 120 //two minutes
lambda_timeout = 300 //five minutes
buckets = tomap(
{
staging = "wellcomecollection-archivematica-staging-transfer-source",
Expand All @@ -20,7 +20,7 @@ module "transfer_lambda" {
handler = "lambda_function.lambda_handler"

filename = var.lambda_zip.output_path
memory_size = 512
memory_size = 2048
timeout = local.lambda_timeout

environment = {
Expand All @@ -30,6 +30,9 @@ module "transfer_lambda" {
}
}
source_code_hash = var.lambda_zip.output_base64sha256
ephemeral_storage = {
size = 4096
}
}

resource "aws_iam_role_policy" "write_to_archivematica_transfer_source" {
Expand Down
Loading

0 comments on commit 2f3c51c

Please sign in to comment.