Merge pull request #5760 from uber/b-website-gcp-instance-group
Correct markdown for google_compute_instance_group and attach to index
This commit is contained in:
commit
74de2fa378
|
@ -15,19 +15,19 @@ and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups)
|
||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
Empty instance group
|
### Empty instance group
|
||||||
```
|
```
|
||||||
resource "google_compute_instance_group" "foobar" {
|
resource "google_compute_instance_group" "test" {
|
||||||
name = "terraform-test"
|
name = "terraform-test"
|
||||||
description = "Terraform test instance group"
|
description = "Terraform test instance group"
|
||||||
zone = "us-central1-a"
|
zone = "us-central1-a"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
With instances and named ports
|
### With instances and named ports
|
||||||
```
|
```
|
||||||
resource "google_compute_instance_group" "foobar" {
|
resource "google_compute_instance_group" "webservers" {
|
||||||
name = "terraform-test"
|
name = "terraform-webservers"
|
||||||
description = "Terraform test instance group"
|
description = "Terraform test instance group"
|
||||||
instances = [
|
instances = [
|
||||||
"${google_compute_instance.test.self_link}",
|
"${google_compute_instance.test.self_link}",
|
||||||
|
@ -70,7 +70,6 @@ Supported characters include lowercase letters, numbers, and hyphens.
|
||||||
The `named_port` block supports:
|
The `named_port` block supports:
|
||||||
|
|
||||||
* `name` - The name which the port will be mapped to.
|
* `name` - The name which the port will be mapped to.
|
||||||
|
|
||||||
* `port` - The port number to map the name to.
|
* `port` - The port number to map the name to.
|
||||||
|
|
||||||
## Attributes Reference
|
## Attributes Reference
|
||||||
|
@ -78,7 +77,5 @@ The `named_port` block supports:
|
||||||
The following attributes are exported:
|
The following attributes are exported:
|
||||||
|
|
||||||
* `network` - The network the instance group is in.
|
* `network` - The network the instance group is in.
|
||||||
|
|
||||||
* `size` - The number of instances in the group.
|
* `size` - The number of instances in the group.
|
||||||
|
|
||||||
* `self_link` - The URL of the created resource.
|
* `self_link` - The URL of the created resource.
|
||||||
|
|
|
@ -57,6 +57,10 @@
|
||||||
<a href="/docs/providers/google/r/compute_instance.html">google_compute_instance</a>
|
<a href="/docs/providers/google/r/compute_instance.html">google_compute_instance</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li<%= sidebar_current("docs-google-compute-instance-group") %>>
|
||||||
|
<a href="/docs/providers/google/r/compute_instance_group.html">google_compute_instance_group</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-google-compute-instance-group-manager") %>>
|
<li<%= sidebar_current("docs-google-compute-instance-group-manager") %>>
|
||||||
<a href="/docs/providers/google/r/compute_instance_group_manager.html">google_compute_instance_group_manager</a>
|
<a href="/docs/providers/google/r/compute_instance_group_manager.html">google_compute_instance_group_manager</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue