Skip to content

Commit e6f71ce

Browse files
Increase default timeout for instance creation\update and improve doc (#8161) (#14909)
Signed-off-by: Modular Magician <[email protected]>
1 parent 0925c8d commit e6f71ce

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.changelog/8161.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
increase default timeout for instance operations to 1 hour
3+
```

google/services/bigtable/resource_bigtable_instance.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ func ResourceBigtableInstance() *schema.Resource {
3131
},
3232

3333
Timeouts: &schema.ResourceTimeout{
34-
Create: schema.DefaultTimeout(20 * time.Minute),
35-
Update: schema.DefaultTimeout(20 * time.Minute),
34+
Create: schema.DefaultTimeout(60 * time.Minute),
35+
Update: schema.DefaultTimeout(60 * time.Minute),
3636
},
3737

3838
CustomizeDiff: customdiff.All(

website/docs/r/bigtable_instance.html.markdown

+4-2
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,10 @@ In addition to the arguments listed above, the following computed attributes are
148148
This resource provides the following
149149
[Timeouts](https://developer.hashicorp.com/terraform/plugin/sdkv2/resources/retries-and-customizable-timeouts) configuration options:
150150

151-
- `create` - Default is 20 minutes.
152-
- `update` - Default is 20 minutes.
151+
- `create` - Default is 60 minutes.
152+
- `update` - Default is 60 minutes.
153+
154+
Adding clusters to existing instances can take a long time. Consider setting a higher value to timeouts if you plan on doing that.
153155

154156
## Import
155157

0 commit comments

Comments
 (0)