pulumi_wasm_providers_gcp_mini::compute

Module global_network_endpoint_group

source
Expand description

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 lifecycle.create_before_destroy to avoid this type of error.

To get more information about GlobalNetworkEndpointGroup, see:

§Example Usage

§Global Network Endpoint Group

resources:
  neg:
    type: gcp:compute:GlobalNetworkEndpointGroup
    properties:
      name: my-lb-neg
      defaultPort: '90'
      networkEndpointType: INTERNET_FQDN_PORT

§Global Network Endpoint Group Ip Address

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let neg = global_network_endpoint_group::create(
        "neg",
        GlobalNetworkEndpointGroupArgs::builder()
            .default_port(90)
            .name("my-lb-neg")
            .network_endpoint_type("INTERNET_IP_PORT")
            .build_struct(),
    );
}

§Import

GlobalNetworkEndpointGroup can be imported using any of these accepted formats:

  • projects/{{project}}/global/networkEndpointGroups/{{name}}

  • {{project}}/{{name}}

  • {{name}}

When using the pulumi import command, GlobalNetworkEndpointGroup can be imported using one of the formats above. For example:

$ pulumi import gcp:compute/globalNetworkEndpointGroup:GlobalNetworkEndpointGroup default projects/{{project}}/global/networkEndpointGroups/{{name}}
$ pulumi import gcp:compute/globalNetworkEndpointGroup:GlobalNetworkEndpointGroup default {{project}}/{{name}}
$ pulumi import gcp:compute/globalNetworkEndpointGroup:GlobalNetworkEndpointGroup default {{name}}

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments