Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add rate limiting environment variables #564

Merged
merged 4 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions root_transfer_service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 10 additions & 2 deletions templates/ecs_tasks/transfer_service.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"value": "${transfer_service_api_port}"
},
{
"name": " MAX_NUMBER_RECORDS",
"name": "MAX_NUMBER_RECORDS",
"value": "${max_number_records}"
},
{
Expand All @@ -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",
Expand Down
Loading