mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-06 18:51:13 +00:00
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:
parent
f4af21f902
commit
ee6cbff726
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user