The default AWS API Gateway execution time limit for POST integrations is 25 seconds. If a POST request exceeds this duration, a 504 error is returned. In some use cases, you might need to increase this limit, which cannot be done directly from the AWS Management Console. #aws #awsgovcloud #awsapigateway #API #increaselimit #504 #APIerror
To Increase AWS API Gateway execution time limit, follow these steps:
Navigate to the Service Quotas.
Navigate to the AWS Services tab on the left side and select API Gateway (it should be the first service listed).
On the Amazon API Gateway page, search for and select the quota "Maximum integration timeout in milliseconds".
On this screen, click on "Request Increase at account level".
On next screen as seen in the screenshot, the maximum limit is 29,000 milliseconds (29 seconds). You can edit and increase this limit here.
Once you input the new value click “Request”
Once it is requested you will see below the status “Requested”
Note : Depending on the size of the increase request, this can be automatic and approved fairly quickly. If it is a larger request, it may have to be manually reviewed and take a bit longer. It is all dependent on internal variables to keep the service functioning as normal.
Comments