google::address

Adds a regional internal IP address that comes from either a primary or secondary IP range of a subnet in a VPC network. Regional external IP addresses can be assigned to GCP VM instances, Cloud VPN gateways, regional external forwarding rules for network load balancers (in either Standard or Premium Tier), and regional external forwarding rules for HTTP(S), SSL Proxy, and TCP Proxy load balancers in Standard Tier.

Example

google::address address_1
    name: 'test-one'
    region: 'us-west2'
    description: 'test static IP address'
    network-tier: 'STANDARD'
end

Attributes

Attribute Description
name Name for the resource. See Fields for formatting requirements. (Required)
description An optional description of the address.
address An optional static IP address to set.
prefix-length The prefix length if the resource represents an IP range.
address-type Type of address to reserve. Valid values are INTERNAL or EXTERNAL. Defaults to EXTERNAL.
purpose Purpose for this resource. This field can only be used with INTERNAL type. Valid values are GCE_ENDPOINT, DNS_RESOLVER, VPC_PEERING or NAT_AUTO.
subnetwork URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be wihin the subnetwork’s IP range. This field can only be used with INTERNAL type with a GCE_ENDPOINT or DNS_RESOLVER purpose.
network The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with the VPC_PEERING purpose.
network-tier Networking tier used for configuring this address. Valid values are PREMIUM or STANDARD. Defaults to PREMIUM.
region The region where this address resides. (Required)

Outputs

Attribute Description
status The status of the address. Values are RESERVING, RESERVED or IN_USE.
self-link GCP server-defined URL for the address.