Skip to content

Commit 5bd4d9a

Browse files
[PRM-658] Increase default lambda memory from 512MB to 5308MB (#566)
Co-authored-by: Robert Gaskin <[email protected]>
1 parent a6b996d commit 5bd4d9a

16 files changed

+5
-17
lines changed

infrastructure/lambda-bulk-upload-metadata-preprocessor.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ module "bulk_upload_metadata_preprocessor_lambda" {
2323
is_gateway_integration_needed = false
2424
is_invoked_from_gateway = false
2525
lambda_timeout = 900
26-
memory_size = 1769
2726
reserved_concurrent_executions = local.bulk_upload_lambda_concurrent_limit
2827
}
2928

infrastructure/lambda-bulk-upload-metadata-processor.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module "bulk-upload-metadata-processor-lambda" {
33
name = "BulkUploadMetadataProcessor"
44
handler = "handlers.bulk_upload_metadata_processor_handler.lambda_handler"
55
lambda_timeout = 900
6-
memory_size = 1769
76

87
iam_role_policy_documents = [
98
module.ndr-bulk-staging-store.s3_read_policy_document,

infrastructure/lambda-bulk-upload-metadata.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module "bulk-upload-metadata-lambda" {
33
name = "BulkUploadMetadataLambda"
44
handler = "handlers.bulk_upload_metadata_handler.lambda_handler"
55
lambda_timeout = 900
6-
memory_size = 1769
76
iam_role_policy_documents = [
87
module.ndr-bulk-staging-store.s3_read_policy_document,
98
module.ndr-bulk-staging-store.s3_write_policy_document,

infrastructure/lambda-bulk-upload-report.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module "bulk-upload-report-lambda" {
33
name = "BulkUploadReportLambda"
44
handler = "handlers.bulk_upload_report_handler.lambda_handler"
55
lambda_timeout = 900
6-
memory_size = 1769
76
iam_role_policy_documents = [
87
module.statistical-reports-store.s3_read_policy_document,
98
module.statistical-reports-store.s3_write_policy_document,

infrastructure/lambda-create-doc-ref.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ module "create-doc-ref-lambda" {
6363
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
6464
resource_id = module.document_reference_gateway.gateway_resource_id
6565
http_methods = ["POST"]
66-
memory_size = 512
6766

6867
api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn
6968
lambda_environment_variables = {

infrastructure/lambda-document-review-processor.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ module "document_review_processor_lambda" {
1313
aws_iam_policy.ssm_access_policy.policy
1414
]
1515
kms_deletion_window = var.kms_deletion_window
16-
memory_size = 512
1716
is_gateway_integration_needed = false
1817
is_invoked_from_gateway = false
1918
rest_api_id = null

infrastructure/lambda-dynamodb-migration.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ module "migration-dynamodb-lambda" {
2929
}
3030

3131
lambda_timeout = 900
32-
memory_size = 1024
3332
reserved_concurrent_executions = contains(["prod"], terraform.workspace) ? 100 : 5
3433

3534
depends_on = [

infrastructure/lambda-generate-document-manifest.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ module "generate-document-manifest-lambda" {
4545
handler = "handlers.generate_document_manifest_handler.lambda_handler"
4646
lambda_timeout = 900
4747
lambda_ephemeral_storage = 512
48-
memory_size = 1769
4948
iam_role_policy_documents = [
5049
module.ndr-document-store.s3_read_policy_document,
5150
module.ndr-document-store.s3_write_policy_document,

infrastructure/lambda-generate-stitch-record.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ module "generate-lloyd-george-stitch-lambda" {
4545
handler = "handlers.generate_lloyd_george_stitch_handler.lambda_handler"
4646
lambda_timeout = 900
4747
lambda_ephemeral_storage = 1024
48-
memory_size = 1769
4948
iam_role_policy_documents = [
5049
module.ndr-document-store.s3_read_policy_document,
5150
module.ndr-document-store.s3_write_policy_document,

infrastructure/lambda-get-report-by-ods.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ module "get-report-by-ods-lambda" {
6464
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
6565
resource_id = module.get-report-by-ods-gateway.gateway_resource_id
6666
http_methods = ["GET"]
67-
memory_size = 1769
6867
lambda_timeout = 900
6968
api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn
7069
lambda_environment_variables = {

0 commit comments

Comments
 (0)