google::compute-global-forwarding-rule

Creates a global forwarding rule.

Example

google::compute-global-forwarding-rule global-forwarding-rule-example
    name: "global-forwarding-rule-example"
    description: "Global forwarding rule description."
    ip-protocol: "TCP"
    load-balancing-scheme: "EXTERNAL"
    port-range: "80-80"
    target-http-proxy: $(google::compute-target-http-proxy target-http-proxy-example-forwarding-rule)
end

Attributes

Attribute Description
ip-address IP address that this forwarding rule serves.
ip-protocol The IP protocol for the forwarding rule. Valid values are TCP, UDP, ESP, AH, SCTP or ICMP. (Required)
all-ports Enabling this allows packets to be forwarded to the backends configured with this forwarding rule over all the configured ports.
description Description of the forwarding rule.
ip-version The IP Version that will be used by this forwarding rule. Valid values are IPV4 or IPV6.
load-balancing-scheme This signifies what the forwarding rule will be used for. Valid values are INTERNAL, INTERNAL_SELF_MANAGED or EXTERNAL.
name The name of the forwarding rule. Must be a string 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? 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. Valid values satisfy the regex: [[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?]. (Required)
network-tier The networking tier used for configuring the load balancer with this forwarding rule. Valid values are PREMIUM or STANDARD.
port-range The port or port numbers to be used for this forwarding rule.
ports list List of ports that the forwarding rule forwards packets with matching destination ports.
service-label A prefix to the service name for this forwarding rule. Must be a string 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])? 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. Valid values satisfy the regex: [[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?].
target-http-proxy The target http proxy to receive the matched traffic.
target-https-proxy The target https proxy to receive the matched traffic.

Outputs

Attribute Description
self-link Server-defined URL for the forwarding rule.
service-name The fully qualified service name for this forwarding rule.