Skip to content

Commit 972aecd

Browse files
committed
Correct markdown for google_compute_instance_group and attach to index
1 parent 26f4467 commit 972aecd

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

website/source/docs/providers/google/r/compute_instance_group.html.markdown

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups)
1515

1616
## Example Usage
1717

18-
Empty instance group
18+
### Empty instance group
1919
```
20-
resource "google_compute_instance_group" "foobar" {
20+
resource "google_compute_instance_group" "test" {
2121
name = "terraform-test"
2222
description = "Terraform test instance group"
2323
zone = "us-central1-a"
2424
}
2525
```
2626

27-
With instances and named ports
27+
### With instances and named ports
2828
```
29-
resource "google_compute_instance_group" "foobar" {
30-
name = "terraform-test"
29+
resource "google_compute_instance_group" "webservers" {
30+
name = "terraform-webservers"
3131
description = "Terraform test instance group"
32-
instances = [
33-
"${google_compute_instance.test.self_link}",
34-
"${google_compute_instance.test2.self_link}"
35-
]
32+
instances = [
33+
"${google_compute_instance.test.self_link}",
34+
"${google_compute_instance.test2.self_link}"
35+
]
3636
named_port {
3737
name = "http"
3838
port = "8080"
@@ -70,15 +70,12 @@ Supported characters include lowercase letters, numbers, and hyphens.
7070
The `named_port` block supports:
7171

7272
* `name` - The name which the port will be mapped to.
73-
7473
* `port` - The port number to map the name to.
7574

7675
## Attributes Reference
7776

7877
The following attributes are exported:
7978

8079
* `network` - The network the instance group is in.
81-
8280
* `size` - The number of instances in the group.
83-
8481
* `self_link` - The URL of the created resource.

website/source/layouts/google.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
<a href="/docs/providers/google/r/compute_instance.html">google_compute_instance</a>
5858
</li>
5959

60+
<li<%= sidebar_current("docs-google-compute-instance-group") %>>
61+
<a href="/docs/providers/google/r/compute_instance_group.html">google_compute_instance_group</a>
62+
</li>
63+
6064
<li<%= sidebar_current("docs-google-compute-instance-group-manager") %>>
6165
<a href="/docs/providers/google/r/compute_instance_group_manager.html">google_compute_instance_group_manager</a>
6266
</li>

0 commit comments

Comments
 (0)