provider/google: Support named_port on instance_group_manager

This allows HTTP and HTTPs load-balancers to direct traffic to ports other than tcp/80 and tcp/443.
This commit is contained in:
chris 2016-01-10 14:09:05 +00:00 committed by James Nugent
parent f4af21f902
commit ee6cbff726

View File

@ -25,6 +25,12 @@ resource "google_compute_instance_group_manager" "foobar" {
base_instance_name = "foobar"
zone = "us-central1-a"
target_size = 2
named_port {
name = "customHTTP"
port = 8888
}
}
```
@ -63,6 +69,12 @@ affect existing instances.
* `zone` - (Required) The zone that instances in this group should be created in.
The `named_port` block supports: (Include a named_port block for each named-port required).
* `name` - (Required) The name of the port.
* `port` - (Required) The port number.
## Attributes Reference
The following attributes are exported: