google::compute-network-endpoint-group¶
Creates a network-endpoint-group.
Example¶
google::compute-network-endpoint-group network-endpoint-group-example
name: "network-endpoint-group-example"
network: $(google::network network-example-network-endpoint-group)
subnet: $(google::subnet subnet-example-network-endpoint-group)
default-port: 80
zone: "us-east1-b"
endpoint
instance: $(google::compute-instance gyro-network-endpoint-group-example-a)
end
end
Attributes¶
| Attribute | Description |
|---|---|
| name | The name of the network endpoint group. (Required) |
| zone | The zone where the network endpoint group will reside. The zone needs to belong to the region of the subnet attached. (Required) |
| default-port | The default port for the network endpoint group. This port is used if no port is specified in the attached network endpoint. (Required) |
| description | The description for the network endpoint group. |
| network | The network to create the network endpoint group in. (Required) |
| subnet | The subnet to attach with the network endpoint group. All attached network endpoint needs to belong to this subnet. (Required) |
| type | The type of the network endpoint group. Currently only supported value is GCE_VM_IP_PORT. Defaults to GCE_VM_IP_PORT. Currently the only supported value is GCE_VM_IP_PORT. |
| endpoint list subresource | A set of network endpoint to attach to the network endpoint group.
|
Outputs¶
| Attribute | Description |
|---|---|
| id | The ID of the network endpoint group |
| self-link | The fully qualified url of the network endpoint group. |
| size | The size of the network endpoint group. Specifies how many network endpoints are part of this group. |