pulumi_wasm_providers_gcp_mini::compute

Module global_address

source
Expand description

Represents a Global Address resource. Global addresses are used for HTTP(S) load balancing.

To get more information about GlobalAddress, see:

§Example Usage

§Global Address Basic

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let default = global_address::create(
        "default",
        GlobalAddressArgs::builder().name("global-appserver-ip").build_struct(),
    );
}

§Global Address Private Services Connect

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let default = global_address::create(
        "default",
        GlobalAddressArgs::builder()
            .address("100.100.100.105")
            .address_type("INTERNAL")
            .name("global-psconnect-ip")
            .network("${network.id}")
            .purpose("PRIVATE_SERVICE_CONNECT")
            .build_struct(),
    );
    let network = network::create(
        "network",
        NetworkArgs::builder()
            .auto_create_subnetworks(false)
            .name("my-network-name")
            .build_struct(),
    );
}

§Import

GlobalAddress can be imported using any of these accepted formats:

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

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

  • {{name}}

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

$ pulumi import gcp:compute/globalAddress:GlobalAddress default projects/{{project}}/global/addresses/{{name}}
$ pulumi import gcp:compute/globalAddress:GlobalAddress default {{project}}/{{name}}
$ pulumi import gcp:compute/globalAddress:GlobalAddress default {{name}}

Structs§

Functions§

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