diff --git a/deploy/api-gateway.tf b/deploy/api-gateway.tf index 5f3de2b..2597529 100644 --- a/deploy/api-gateway.tf +++ b/deploy/api-gateway.tf @@ -216,6 +216,17 @@ resource "aws_api_gateway_stage" "stage" { stage_name = "api" } +resource "aws_api_gateway_method_settings" "api_gateway_all_methods_settings" { + rest_api_id = aws_api_gateway_rest_api.rest_api.id + stage_name = aws_api_gateway_stage.stage.stage_name + method_path = "*/*" + + settings { + throttling_rate_limit = 10 + throttling_burst_limit = 5 + } +} + resource "aws_lambda_permission" "api_gateway" { statement_id = "AllowExecutionFromAPIGateway" action = "lambda:InvokeFunction"