Skip to content

Commit e402daa

Browse files
Reapply bigtable patch (#3395) (#1968)
* Allow one and two nodes production bigtable clusters * Allow one and two nodes production bigtable clusters Co-authored-by: vitovitolo <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: vitovitolo <[email protected]>
1 parent 6589c9e commit e402daa

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.changelog/3395.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
bigtable: Reduced the minimum number of nodes for the `bigtable_instace` resource from 3 to 1.
3+
```

google-beta/resource_bigtable_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func resourceBigtableInstance() *schema.Resource {
5454
// DEVELOPMENT instances could get returned with either zero or one node,
5555
// so mark as computed.
5656
Computed: true,
57-
ValidateFunc: validation.IntAtLeast(3),
57+
ValidateFunc: validation.IntAtLeast(1),
5858
},
5959
"storage_type": {
6060
Type: schema.TypeString,

website/docs/r/bigtable_instance.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ resource "google_bigtable_instance" "production-instance" {
2323
cluster {
2424
cluster_id = "tf-instance-cluster"
2525
zone = "us-central1-b"
26-
num_nodes = 3
26+
num_nodes = 1
2727
storage_type = "HDD"
2828
}
2929
}
@@ -73,7 +73,7 @@ cluster must have a different zone in the same region. Zones that support
7373
Bigtable instances are noted on the [Cloud Bigtable locations page](https://cloud.google.com/bigtable/docs/locations).
7474

7575
* `num_nodes` - (Optional) The number of nodes in your Cloud Bigtable cluster.
76-
Required, with a minimum of `3` for a `PRODUCTION` instance. Must be left unset
76+
Required, with a minimum of `1` for a `PRODUCTION` instance. Must be left unset
7777
for a `DEVELOPMENT` instance.
7878

7979
* `storage_type` - (Optional) The storage type to use. One of `"SSD"` or

0 commit comments

Comments
 (0)