google::compute-forwarding-rule

Creates a regional forwarding rule.

Example

google::compute-forwarding-rule forwarding-rule-example
    name: "forwarding-rule-example"
    description: "Regional forwarding rule description."
    region: "us-central1"
    ip-protocol: "TCP"
    load-balancing-scheme: "EXTERNAL"
    port-range: "80-80"
    target-pool: $(google::compute-target-pool target-pool-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])?].
region The region this forwarding rule should live in. (Required)
target-pool The target pool resource to receive the matched traffic. This target pool must live in the same region as the forwarding rule. (Required)

Outputs

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