diff --git a/root_transfer_service.tf b/root_transfer_service.tf index a29b842..b87363e 100644 --- a/root_transfer_service.tf +++ b/root_transfer_service.tf @@ -152,6 +152,8 @@ module "transfer_service_ecs_task" { max_individual_file_size_mb = 2000 max_transfer_size_mb = 5000 transfer_service_client_secret_path = local.keycloak_tdr_transfer_service_secret_name + throttle_amount = 50 + throttle_per_ms = 10 }) container_name = "transfer-service" cpu = 512 diff --git a/templates/ecs_tasks/transfer_service.json.tpl b/templates/ecs_tasks/transfer_service.json.tpl index c9917de..9c5939c 100644 --- a/templates/ecs_tasks/transfer_service.json.tpl +++ b/templates/ecs_tasks/transfer_service.json.tpl @@ -43,7 +43,7 @@ "value": "${transfer_service_api_port}" }, { - "name": " MAX_NUMBER_RECORDS", + "name": "MAX_NUMBER_RECORDS", "value": "${max_number_records}" }, { @@ -53,7 +53,15 @@ { "name": "MAX_TRANSFER_SIZE_MB", "value": "${max_transfer_size_mb}" - } + }, + { + "name": "THROTTLE_AMOUNT", + "value": "${throttle_amount}" + }, + { + "name": "THROTTLE_PER_MS", + "value": "${throttle_per_ms}" + } ], "logConfiguration": { "logDriver": "awslogs",