Skip to content

googleComputeGlobalNetworkEndpointGroup

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.

Recreating a global network endpoint group that's in use by another resource will give a resourceInUseByAnotherResource error. Use lifecycleCreateBeforeDestroy to avoid this type of error.

To get more information about GlobalNetworkEndpointGroup, see:

Example Usage - Global Network Endpoint Group

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.computeGlobalNetworkEndpointGroup.ComputeGlobalNetworkEndpointGroup(
  this,
  "neg",
  {
    default_port: "90",
    name: "my-lb-neg",
    network_endpoint_type: "INTERNET_FQDN_PORT",
  }
);

Example Usage - Global Network Endpoint Group Ip Address

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.computeGlobalNetworkEndpointGroup.ComputeGlobalNetworkEndpointGroup(
  this,
  "neg",
  {
    default_port: 90,
    name: "my-lb-neg",
    network_endpoint_type: "INTERNET_IP_PORT",
  }
);

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 [aZ]([AZ09]*[aZ09])? 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.

  • networkEndpointType - (Required) Type of network endpoints in this network endpoint group. Possible values are internetIpPort and internetFqdnPort.


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

  • defaultPort - (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}}
  • selfLink - The URI of the created resource.

Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 20 minutes.
  • delete - Default is 20 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.