You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+74-88Lines changed: 74 additions & 88 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
# Serverless API Gateway Integration Timeout
2
2
3
-
A Serverless Framework plugin to modify the API Gateway integration timeout based on your AWS account's service quota.
3
+
A lightweight Serverless Framework plugin that adds support for setting API Gateway integration timeouts directly in HTTP events.
4
4
5
5
## Problem
6
6
7
-
By default, Amazon API Gateway has an integration timeout limit of 29 seconds (29,000 milliseconds). This can be too short for more complex or resource-intensive operations, especially for Generative AI workloads with Large Language Models (LLMs).
7
+
By default, Amazon API Gateway has an integration timeout limit of 29 seconds (29,000 milliseconds). This can be too short for more complex or resource-intensive operations.
8
8
9
-
As [announced in June 2024](https://aws.amazon.com/about-aws/whats-new/2024/06/amazon-api-gateway-integration-timeout-limit-29-seconds/), AWS now allows integration timeouts beyond 29 seconds for Regional and Private REST APIs, making it possible to support longer-running backend operations.
9
+
While Lambda functions can have longer timeout values (up to 15 minutes), API Gateway will terminate the request if it exceeds its integration timeout. The Serverless Framework doesn't natively support setting this timeout directly in HTTP event definitions.
10
10
11
11
## Solution
12
12
13
-
This plugin automatically updates the API Gateway integration timeout after deployment, allowing you to set integration timeout values for your API Gateway based on your account's service quota.
13
+
This plugin extends the Serverless Framework's HTTP event schema to include a `timeout` property. It intercepts the API Gateway CloudFormation template generation to add the `TimeoutInMillis` property to your integrations.
0 commit comments