Correct markdown for google_compute_instance_group and attach to index

This commit is contained in:
Bill Fumerola 2016-03-21 10:21:57 -07:00
parent 57202f3c70
commit 57004b8d54

View File

@ -15,24 +15,24 @@ and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups)
## Example Usage
Empty instance group
### Empty instance group
```
resource "google_compute_instance_group" "foobar" {
resource "google_compute_instance_group" "test" {
name = "terraform-test"
description = "Terraform test instance group"
zone = "us-central1-a"
}
```
With instances and named ports
### With instances and named ports
```
resource "google_compute_instance_group" "foobar" {
name = "terraform-test"
resource "google_compute_instance_group" "webservers" {
name = "terraform-webservers"
description = "Terraform test instance group"
instances = [
"${google_compute_instance.test.self_link}",
"${google_compute_instance.test2.self_link}"
]
instances = [
"${google_compute_instance.test.self_link}",
"${google_compute_instance.test2.self_link}"
]
named_port {
name = "http"
port = "8080"
@ -70,7 +70,6 @@ Supported characters include lowercase letters, numbers, and hyphens.
The `named_port` block supports:
* `name` - The name which the port will be mapped to.
* `port` - The port number to map the name to.
## Attributes Reference
@ -78,7 +77,5 @@ The `named_port` block supports:
The following attributes are exported:
* `network` - The network the instance group is in.
* `size` - The number of instances in the group.
* `self_link` - The URL of the created resource.