File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ Summary:
55
55
- [ AWS X-Ray Tracing] ( #aws-x-ray-tracing )
56
56
- [ Tags / Stack Tags] ( #tags--stack-tags )
57
57
- [ Logs] ( #logs )
58
+ - [ Disable Default Endpoint] ( #disable-default-endpoint )
59
+ - [ Providing a custom stage name] ( #providing-a-custom-stage-name )
60
+ - [ Timeout] ( #timeout )
58
61
59
62
_ Are you looking for tutorials on using API Gateway? Check out the following resources:_
60
63
@@ -1867,3 +1870,33 @@ provider:
1867
1870
apiGateway:
1868
1871
stage: customStageName
1869
1872
` ` `
1873
+
1874
+ # # Timeout
1875
+
1876
+ By default, the timeout for API Gateway integration is 29 seconds.
1877
+ You can change this by setting the `timeoutInMillis` property in the `apiGateway` configuration
1878
+ and overriding it in the `http` event for specific functions.
1879
+
1880
+ **Note:** This is particularly useful if you have requested an increase to the API Gateway integration timeout soft limit
1881
+ in AWS (which previously had a hard limit of 29 seconds).
1882
+
1883
+ ` ` ` yml
1884
+ provider:
1885
+ apiGateway:
1886
+ timeoutInMillis: 10000 # Default timeout of 10 seconds for all endpoints
1887
+
1888
+ functions:
1889
+ fetch:
1890
+ handler: handler.hello
1891
+ events:
1892
+ - http:
1893
+ path: /posts/{id}
1894
+ method: get
1895
+ create:
1896
+ handler: handler.bye
1897
+ events:
1898
+ - http:
1899
+ path: /posts
1900
+ method: post
1901
+ timeoutInMillis: 40000 # Override: 40-second timeout for this endpoint
1902
+ ` ` `
You can’t perform that action at this time.
0 commit comments