Get a router within GCE from its name and VPC.
data "google_compute_router" "my-router" {
name = "myrouter-us-east1"
network = "my-network"
}
The following arguments are supported:
name
- (Required) The name of the router.
network
- (Required) The VPC network on which this router lives.
project
- (Optional) The ID of the project in which the resource
belongs. If it is not provided, the provider project is used.
region
- (Optional) The region this router has been created in. If
unspecified, this defaults to the region configured in the provider.
See google_compute_router resource for details of the available attributes.