Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/google: documentation and validation fixes for forwarding rules #13952

Merged
merged 1 commit into from
Apr 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func resourceComputeForwardingRule() *schema.Resource {
Elem: &schema.Schema{Type: schema.TypeString},
Optional: true,
Set: schema.HashString,
MaxItems: 5,
},

"project": &schema.Schema{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: "google"
page_title: "Google: google_compute_forwarding_rule"
sidebar_current: "docs-google-compute-forwarding-rule"
description: |-
Manages a Target Pool within GCE.
Manages a Forwarding Rule within GCE.
---

# google\_compute\_forwarding\_rule
Expand Down Expand Up @@ -54,8 +54,9 @@ The following arguments are supported:
* `port_range` - (Optional) A range e.g. "1024-2048" or a single port "1024"
(defaults to all ports!). Only used for external load balancing.

* `ports` - (Optional) A list of ports to use for internal load balancing
(defaults to all ports).
* `ports` - (Optional) A list of ports (maximum of 5) to use for internal load
balancing. Packets addressed to these ports will be forwarded to the backends
configured with this forwarding rule. Required for internal load balancing.

* `project` - (Optional) The project in which the resource belongs. If it
is not provided, the provider project is used.
Expand Down