Get a forwarding rule within GCE from its name.
data "google_compute_forwarding_rule" "my-forwarding-rule" {
name = "forwarding-rule-us-east1"
}
The following arguments are supported:
name
- (Required) The name of the forwarding rule.project
- (Optional) The project in which the resource belongs. If it
is not provided, the provider project is used.
region
- (Optional) The region in which the resource belongs. If it
is not provided, the project region is used.
See google_compute_forwarding_rule resource for details of the available attributes.