Skip to main content

GCP Compute Router

Google Cloud Router is a fully distributed and managed control-plane service that dynamically exchanges routes between your Virtual Private Cloud (VPC) networks and on-premises or peered networks using the Border Gateway Protocol (BGP). By learning and advertising routes in real time, Cloud Router removes the need to maintain static routes and allows hybrid or multi-cloud topologies to react automatically to network changes. See the official documentation for detailed information: https://cloud.google.com/compute/docs/reference/rest/v1/routers/get

Terrafrom Mappings:

  • google_compute_router.id

Supported Methods​

  • GET: Get a gcp-compute-router by its "name"
  • LIST: List all gcp-compute-router
  • SEARCH: Search with full ID: projects/[project]/regions/[region]/routers/[router] (used for terraform mapping).

ip​

A Cloud Router advertises and learns IP prefixes via BGP sessions; therefore, it is associated with the IP ranges (prefixes) that are propagated to or received from its peers.

gcp-compute-vpn-tunnel​

Cloud Router can terminate BGP sessions over HA VPN tunnels. Each VPN tunnel configured with dynamic routing references a specific Cloud Router that handles the BGP negotiation.

gcp-compute-network​

Every Cloud Router is created inside a particular VPC network and region; it exchanges routes on behalf of that VPC network and inherits its subnet IP ranges.