» google_compute_global_network_endpoint

A Global Network endpoint represents a IP address and port combination that exists outside of GCP. NOTE: Global network endpoints cannot be created outside of a global network endpoint group.

To get more information about GlobalNetworkEndpoint, see:

» Example Usage - Global Network Endpoint

resource "google_compute_global_network_endpoint" "default-endpoint" {
  global_network_endpoint_group = google_compute_global_network_endpoint_group.neg.name

  fqdn       = "www.example.com"
  port       = 90
  ip_address = ""

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

» Argument Reference

The following arguments are supported:

  • ip_address - (Optional) IPv4 address external endpoint.

  • fqdn - (Optional) Fully qualified domain name of network endpoint. This can only be specified when network_endpoint_type of the NEG is INTERNET_FQDN_PORT.

  • 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 {{project}}/{{global_network_endpoint_group}}/{{ip_address}}/{{fqdn}}/{{port}}

» Timeouts

This resource provides the following Timeouts configuration options:

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

» Import

GlobalNetworkEndpoint can be imported using any of these accepted formats:

$ terraform import google_compute_global_network_endpoint.default projects/{{project}}/global/networkEndpointGroups/{{global_network_endpoint_group}}/{{fqdn}}/{{ip_address}}/{{port}}
$ terraform import google_compute_global_network_endpoint.default {{project}}/{{global_network_endpoint_group}}/{{fqdn}}/{{ip_address}}/{{port}}
$ terraform import google_compute_global_network_endpoint.default {{global_network_endpoint_group}}/{{fqdn}}/{{ip_address}}/{{port}}

» User Project Overrides

This resource supports User Project Overrides.