Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase default timeout for instance creation\update and improve doc #14909

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/8161.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
increase default timeout for instance operations to 1 hour
```
4 changes: 2 additions & 2 deletions google/services/bigtable/resource_bigtable_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func ResourceBigtableInstance() *schema.Resource {
},

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

CustomizeDiff: customdiff.All(
Expand Down
6 changes: 4 additions & 2 deletions website/docs/r/bigtable_instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ In addition to the arguments listed above, the following computed attributes are
This resource provides the following
[Timeouts](https://developer.hashicorp.com/terraform/plugin/sdkv2/resources/retries-and-customizable-timeouts) configuration options:

- `create` - Default is 20 minutes.
- `update` - Default is 20 minutes.
- `create` - Default is 60 minutes.
- `update` - Default is 60 minutes.

Adding clusters to existing instances can take a long time. Consider setting a higher value to timeouts if you plan on doing that.

## Import

Expand Down