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:
- API documentation
- How-to Guides
§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§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments