diff --git a/infrastructure/lambda-authoriser.tf b/infrastructure/lambda-authoriser.tf index 4d92fb87..b1648023 100644 --- a/infrastructure/lambda-authoriser.tf +++ b/infrastructure/lambda-authoriser.tf @@ -22,6 +22,7 @@ module "authoriser-lambda" { http_methods = ["GET"] is_gateway_integration_needed = false is_invoked_from_gateway = true + memory_size = 256 depends_on = [ aws_iam_policy.ssm_policy_authoriser, diff --git a/infrastructure/lambda-create-doc-ref.tf b/infrastructure/lambda-create-doc-ref.tf index 31093fd2..c9f49c07 100644 --- a/infrastructure/lambda-create-doc-ref.tf +++ b/infrastructure/lambda-create-doc-ref.tf @@ -80,6 +80,7 @@ module "create-doc-ref-lambda" { rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id resource_id = module.create-doc-ref-gateway.gateway_resource_id http_methods = ["POST"] + memory_size = 256 api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn lambda_environment_variables = { STAGING_STORE_BUCKET_NAME = "${terraform.workspace}-${var.staging_store_bucket_name}" diff --git a/infrastructure/lambda-delete-doc-ref.tf b/infrastructure/lambda-delete-doc-ref.tf index 078aa8ce..a3037ddf 100644 --- a/infrastructure/lambda-delete-doc-ref.tf +++ b/infrastructure/lambda-delete-doc-ref.tf @@ -77,6 +77,7 @@ module "delete-doc-ref-lambda" { rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id resource_id = module.delete-doc-ref-gateway.gateway_resource_id http_methods = ["DELETE"] + memory_size = 256 api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn lambda_environment_variables = { APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id diff --git a/infrastructure/lambda-document-manifest-job.tf b/infrastructure/lambda-document-manifest-job.tf index 736c1bde..13c05111 100644 --- a/infrastructure/lambda-document-manifest-job.tf +++ b/infrastructure/lambda-document-manifest-job.tf @@ -79,6 +79,7 @@ module "document-manifest-job-lambda" { rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id resource_id = module.document-manifest-job-gateway.gateway_resource_id http_methods = ["GET", "POST"] + memory_size = 256 api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn lambda_environment_variables = { APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id diff --git a/infrastructure/lambda-login-redirect.tf b/infrastructure/lambda-login-redirect.tf index e88f8c1c..66a8364f 100644 --- a/infrastructure/lambda-login-redirect.tf +++ b/infrastructure/lambda-login-redirect.tf @@ -29,6 +29,7 @@ module "login_redirect_lambda" { rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id resource_id = aws_api_gateway_resource.login_resource.id http_methods = ["GET"] + memory_size = 256 api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn lambda_environment_variables = { APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id diff --git a/infrastructure/lambda-logout.tf b/infrastructure/lambda-logout.tf index 916d2a00..a7fdfe64 100644 --- a/infrastructure/lambda-logout.tf +++ b/infrastructure/lambda-logout.tf @@ -32,6 +32,7 @@ module "logout_lambda" { rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id resource_id = module.logout-gateway.gateway_resource_id http_methods = ["GET"] + memory_size = 256 api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn lambda_environment_variables = { APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id diff --git a/infrastructure/lambda-search-doc-references.tf b/infrastructure/lambda-search-doc-references.tf index 5d0e9a3c..4f270472 100644 --- a/infrastructure/lambda-search-doc-references.tf +++ b/infrastructure/lambda-search-doc-references.tf @@ -77,6 +77,7 @@ module "search-document-references-lambda" { rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id resource_id = module.search-document-references-gateway.gateway_resource_id http_methods = ["GET"] + memory_size = 256 api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn lambda_environment_variables = { APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id diff --git a/infrastructure/lambda-search-patient.tf b/infrastructure/lambda-search-patient.tf index fb5eee48..5cc92e5e 100644 --- a/infrastructure/lambda-search-patient.tf +++ b/infrastructure/lambda-search-patient.tf @@ -75,6 +75,7 @@ module "search-patient-details-lambda" { rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id resource_id = module.search-patient-details-gateway.gateway_resource_id http_methods = ["GET"] + memory_size = 256 lambda_environment_variables = { APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id diff --git a/infrastructure/lambda-update-upload-state.tf b/infrastructure/lambda-update-upload-state.tf index 96e98b5d..8049375e 100644 --- a/infrastructure/lambda-update-upload-state.tf +++ b/infrastructure/lambda-update-upload-state.tf @@ -76,6 +76,7 @@ module "update-upload-state-lambda" { rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id resource_id = module.update-upload-state-gateway.gateway_resource_id http_methods = ["POST"] + memory_size = 256 api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn lambda_environment_variables = { APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id diff --git a/infrastructure/lambda-upload-confirm-result.tf b/infrastructure/lambda-upload-confirm-result.tf index e8ff1b2d..6ffa2790 100644 --- a/infrastructure/lambda-upload-confirm-result.tf +++ b/infrastructure/lambda-upload-confirm-result.tf @@ -78,6 +78,7 @@ module "upload_confirm_result_lambda" { rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id resource_id = module.upload_confirm_result_gateway.gateway_resource_id http_methods = ["POST"] + memory_size = 256 api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn lambda_environment_variables = { APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id