I want to increase my Amazon API Gateway integration timeout quota to more than the default 29 seconds.
Resolution
The default integration timeout quota for API Gateway APIs is 29 seconds. When an integration request takes longer than your configured API Gateway API maximum integration timeout parameter, API Gateway returns an HTTP 504 status code.
Note: You can only increase the integration timeout quota for AWS Regional and private REST APIs.
Increase the integration timeout quota for Regional and private REST APIs
Complete the following steps:
- Open the Service Quotas console.
- In the navigation pane, choose AWS services.
- In the AWS services search bar, enter Amazon API Gateway.
- For Quota name, choose Maximum integration timeout in milliseconds.
- Choose Request increase at account level.
- For Increase quota value, enter a value greater than 29 seconds (29,000 milliseconds).
- Choose Request.
Note: In the Recent quota increase request section, the status shows Pending.
- Wait a few minutes, and then refresh the page.
If the quota increase request doesn't exceed the maximum quota, then the status changes to Approved. To view your new quota, check the Applied account-level quota value field. If the quota increase request exceeds the maximum quota, then the status changes to Case opened. You can view the case in the AWS Support Center.
Update the individual API integration timeout value
Complete the following steps:
- Open the API Gateway console.
- In the navigation pane, choose APIs, and then select the name of your Regional or private API.
- Choose your method type, and then choose the Integration request tab.
- For Integration request settings, choose Edit.
- For Integration timeout, enter a value greater than 29 seconds (29,000 milliseconds).
- Choose Save.
- Redeploy the API for the new integration timeout quota to take effect.
- Repeat steps 1-7 for all other APIs that you want to update.
If you receive an HTTP 504 error status code, then see How do I troubleshoot API Gateway HTTP 504 status code timeout errors?
Related information
Amazon API Gateway dimensions and metrics
How do I manage my AWS service quotas?