Skip to content

Commit

Permalink
Merge pull request #38010 from Bhavyeshshah/f-aws_api_gateway_integra…
Browse files Browse the repository at this point in the history
…tion

Increase limit for Amazon API Gateway integration timeout beyond 29 s…
  • Loading branch information
ewbankkit authored Jun 17, 2024
2 parents a05a2cf + 030536d commit a9c9838
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/38010.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/aws_api_gateway_integration: Increase maximum value of `timeout_milliseconds` from `29000` (29 seconds) to `300000` (5 minutes)
```
2 changes: 1 addition & 1 deletion internal/service/apigateway/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func resourceIntegration() *schema.Resource {
"timeout_milliseconds": {
Type: schema.TypeInt,
Optional: true,
ValidateFunc: validation.IntBetween(50, 29000),
ValidateFunc: validation.IntBetween(50, 300000),
Default: 29000,
},
"tls_config": {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/api_gateway_integration.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ This resource supports the following arguments:
* `cache_key_parameters` - (Optional) List of cache key parameters for the integration.
* `cache_namespace` - (Optional) Integration's cache namespace.
* `content_handling` - (Optional) How to handle request payload content type conversions. Supported values are `CONVERT_TO_BINARY` and `CONVERT_TO_TEXT`. If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehaviors is configured to support payload pass-through.
* `timeout_milliseconds` - (Optional) Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds.
* `timeout_milliseconds` - (Optional) Custom timeout between 50 and 300,000 milliseconds. The default value is 29,000 milliseconds. You need to raise a [Service Quota Ticket](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html) to increase time beyond 29,000 milliseconds.
* `tls_config` - (Optional) TLS configuration. See below.

### tls_config Configuration Block
Expand Down

0 comments on commit a9c9838

Please sign in to comment.