I want to increase the amount of time that Amazon CloudFront waits for a response from my custom origin.
Short description
To adjust the timeout value that CloudFront uses when communicating with your custom origin, change the origin's response timeout setting in the CloudFront console.
Important: If you're getting HTTP 504 errors from CloudFront, make sure that you verify the following before you increase your origin's response timeout:
- The firewall and security groups on your origin server allow CloudFront traffic.
- The origin server is accessible on the internet.
- The server timeouts aren't being caused by delayed responses from applications on your origin server.
For more information, see HTTP 504 status code (Gateway Timeout) in the CloudFront Developer Guide.
Resolution
- Open the CloudFront console.
- In the Distributions pane, in the ID column, select the ID of the distribution that you want to edit.
- Choose the Origins tab. The Origins page appears.
- In the Origin name column, select the check box next to the origin name that you want to edit. Then, choose Edit. The Edit origin page appears.
- In the Settings pane, choose Additional settings.
- For Response timeout, enter the new timeout value.
- Choose Save changes.
Note: To configure a Response timeout value that's greater than 60 seconds, you must request a quota increase. The default Response timeout value is 30 seconds.