Skip to content

Commit

Permalink
Bump SQL Database Instance default timeout (#4636) (#8802)
Browse files Browse the repository at this point in the history
* Bump SQL Database Instance default timeout

* Docs too

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Mar 30, 2021
1 parent 3a28e00 commit 870286e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .changelog/4636.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
sql: changed the default timeout of `google_sql_database_instance` to 30m from 20m
```
6 changes: 3 additions & 3 deletions google/resource_sql_database_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ func resourceSqlDatabaseInstance() *schema.Resource {
},

Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(20 * time.Minute),
Update: schema.DefaultTimeout(20 * time.Minute),
Delete: schema.DefaultTimeout(20 * time.Minute),
Create: schema.DefaultTimeout(30 * time.Minute),
Update: schema.DefaultTimeout(30 * time.Minute),
Delete: schema.DefaultTimeout(30 * time.Minute),
},

CustomizeDiff: customdiff.All(
Expand Down
6 changes: 3 additions & 3 deletions website/docs/r/sql_database_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,9 @@ performing filtering in a Terraform config.
`google_sql_database_instance` provides the following
[Timeouts](/docs/configuration/resources.html#timeouts) configuration options:

- `create` - Default is 20 minutes.
- `update` - Default is 20 minutes.
- `delete` - Default is 20 minutes.
- `create` - Default is 30 minutes.
- `update` - Default is 30 minutes.
- `delete` - Default is 30 minutes.

## Import

Expand Down

0 comments on commit 870286e

Please sign in to comment.