Skip to content

Commit 78df20c

Browse files
authored
Merge pull request hashicorp#177 from terraform-providers/bigtable-support
Add support for Google Cloud Bigtable.
2 parents 008a09b + c45c483 commit 78df20c

File tree

3 files changed

+120
-11
lines changed

3 files changed

+120
-11
lines changed
+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
layout: "google"
3+
page_title: "Google: google_bigtable_instance"
4+
sidebar_current: "docs-google-bigtable-instance"
5+
description: |-
6+
Creates a Google Bigtable instance.
7+
---
8+
9+
# google_bigtable_instance
10+
11+
Creates a Google Bigtable instance. For more information see
12+
[the official documentation](https://cloud.google.com/bigtable/) and
13+
[API](https://cloud.google.com/bigtable/docs/go/reference).
14+
15+
16+
## Example Usage
17+
18+
```hcl
19+
resource "google_bigtable_instance" "instance" {
20+
name = "tf-instance"
21+
cluster_id = "tf-instance-cluster"
22+
zone = "us-central1-b"
23+
num_nodes = 3
24+
storage_type = "HDD"
25+
}
26+
```
27+
28+
## Argument Reference
29+
30+
The following arguments are supported:
31+
32+
* `name` - (Required) The name of the Bigtable instance.
33+
34+
* `cluster_id` - (Required) The name of the Bigtable instance's cluster.
35+
36+
* `zone` - (Required) The zone to create the Bigtable instance in. Zones that support Bigtable instances are noted on the [Cloud Locations page](https://cloud.google.com/about/locations/).
37+
38+
* `num_nodes` - (Optional) The number of nodes in your Bigtable instance. Minimum of `3`. Defaults to `3`.
39+
40+
* `storage_type` - (Optional) The storage type to use. One of `"SSD"` or `"HDD"`. Defaults to `SSD`.
41+
42+
* `project` - (Optional) The project in which the resource belongs. If it
43+
is not provided, the provider project is used.
44+
45+
* `display_name` - (Optional) The human-readable display name of the Bigtable instance. Defaults to the instance `name`.
46+
47+
## Attributes Reference
48+
49+
Only the arguments listed above are exposed as attributes.

docs/r/bigtable_table.html.markdown

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
layout: "google"
3+
page_title: "Google: google_bigtable_table"
4+
sidebar_current: "docs-google-bigtable-table"
5+
description: |-
6+
Creates a Google Bigtable table inside an instance.
7+
---
8+
9+
# google_bigtable_table
10+
11+
Creates a Google Bigtable table inside an instance. For more information see
12+
[the official documentation](https://cloud.google.com/bigtable/) and
13+
[API](https://cloud.google.com/bigtable/docs/go/reference).
14+
15+
16+
## Example Usage
17+
18+
```hcl
19+
resource "google_bigtable_instance" "instance" {
20+
name = "tf-instance"
21+
cluster_id = "tf-instance-cluster"
22+
zone = "us-central1-b"
23+
num_nodes = 3
24+
storage_type = "HDD"
25+
}
26+
27+
resource "google_bigtable_table" "table" {
28+
name = "tf-table"
29+
instance_name = "${google_bigtable_instance.instance.name}"
30+
split_keys = ["a", "b", "c"]
31+
}
32+
```
33+
34+
## Argument Reference
35+
36+
The following arguments are supported:
37+
38+
* `name` - (Required) The name of the table.
39+
40+
* `instance_name` - (Required) The name of the Bigtable instance.
41+
42+
* `split_keys` - (Optional) A list of predefined keys to split the table on.
43+
44+
* `project` - (Optional) The project in which the resource belongs. If it
45+
is not provided, the provider project is used.
46+
47+
## Attributes Reference
48+
49+
Only the arguments listed above are exposed as attributes.

google.erb

+22-11
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,6 @@
1010
<a href="/docs/providers/google/index.html">Google Provider</a>
1111
</li>
1212

13-
<li<%= sidebar_current("docs-google-bigquery") %>>
14-
<a href="#">Google BigQuery Resources</a>
15-
<ul class="nav nav-visible">
16-
<li<%= sidebar_current("docs-google-bigquery-dataset") %>>
17-
<a href="/docs/providers/google/r/bigquery_dataset.html">google_bigquery_dataset</a>
18-
<li<%= sidebar_current("docs-google-bigquery-table") %>>
19-
<a href="/docs/providers/google/r/bigquery_table.html">google_bigquery_table</a>
20-
</li>
21-
</ul>
22-
</li>
23-
2413
<li<%= sidebar_current("docs-google-datasource") %>>
2514
<a href="#">Google Cloud Platform Data Sources</a>
2615
<ul class="nav nav-visible">
@@ -45,6 +34,28 @@
4534
</ul>
4635
</li>
4736

37+
<li<%= sidebar_current("docs-google-bigquery") %>>
38+
<a href="#">Google BigQuery Resources</a>
39+
<ul class="nav nav-visible">
40+
<li<%= sidebar_current("docs-google-bigquery-dataset") %>>
41+
<a href="/docs/providers/google/r/bigquery_dataset.html">google_bigquery_dataset</a>
42+
<li<%= sidebar_current("docs-google-bigquery-table") %>>
43+
<a href="/docs/providers/google/r/bigquery_table.html">google_bigquery_table</a>
44+
</li>
45+
</ul>
46+
</li>
47+
48+
<li<%= sidebar_current("docs-google-bigtable") %>>
49+
<a href="#">Google Bigtable Resources</a>
50+
<ul class="nav nav-visible">
51+
<li<%= sidebar_current("docs-google-bigtable-instance") %>>
52+
<a href="/docs/providers/google/r/bigtable_instance.html">google_bigtable_instance</a>
53+
<li<%= sidebar_current("docs-google-bigtable-table") %>>
54+
<a href="/docs/providers/google/r/bigtable_table.html">google_bigtable_table</a>
55+
</li>
56+
</ul>
57+
</li>
58+
4859
<li<%= sidebar_current("docs-google-(project|service)") %>>
4960
<a href="#">Google Cloud Platform Resources</a>
5061
<ul class="nav nav-visible">

0 commit comments

Comments
 (0)