diff --git a/terraform/api_gateway.tf b/terraform/api_gateway.tf index 1521afc..45c0dfc 100644 --- a/terraform/api_gateway.tf +++ b/terraform/api_gateway.tf @@ -29,6 +29,7 @@ resource "aws_api_gateway_usage_plan" "this" { stage = var.api_gateway_stage_name throttle { burst_limit = 50 + rate_limit = 10 path = "/inference/GET" } } @@ -38,6 +39,11 @@ resource "aws_api_gateway_usage_plan" "this" { offset = 0 period = "DAY" } + + throttle_settings { + burst_limit = 100 + rate_limit = 50 + } } resource "aws_api_gateway_api_key" "this" {