» google_compute_global_network_endpoint_group

A global network endpoint group contains endpoints that reside outside of Google Cloud. Currently a global network endpoint group can only support a single endpoint.

To get more information about GlobalNetworkEndpointGroup, see:

» Example Usage - Global Network Endpoint Group

resource "google_compute_global_network_endpoint_group" "neg" {
  name                  = "my-lb-neg"
  default_port          = "90"
  network_endpoint_type = "INTERNET_FQDN_PORT"
}

» Example Usage - Global Network Endpoint Group Ip Address

resource "google_compute_global_network_endpoint_group" "neg" {
  name                  = "my-lb-neg"
  network_endpoint_type = "INTERNET_IP_PORT"
  default_port          = 90
}

» Argument Reference

The following arguments are supported:

  • name - (Required) Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

  • network_endpoint_type - (Required) Type of network endpoints in this network endpoint group.

Possible values are: * INTERNET_IP_PORT * INTERNET_FQDN_PORT


  • description - (Optional) An optional description of this resource. Provide this property when you create the resource.

  • default_port - (Optional) The default port used if the port number is not specified in the network endpoint.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

» Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format projects/{{project}}/global/networkEndpointGroups/{{name}}
  • self_link - The URI of the created resource.

» Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 4 minutes.
  • delete - Default is 4 minutes.

» Import

GlobalNetworkEndpointGroup can be imported using any of these accepted formats:

$ terraform import google_compute_global_network_endpoint_group.default projects/{{project}}/global/networkEndpointGroups/{{name}}
$ terraform import google_compute_global_network_endpoint_group.default {{project}}/{{name}}
$ terraform import google_compute_global_network_endpoint_group.default {{name}}

» User Project Overrides

This resource supports User Project Overrides.