Cloud On-Ramps to WAN: Multi-Cloud VPC, Hub VPN, Terraform, and Route Propagation
How Cloudflare Multi-Cloud Networking builds WAN cloud on-ramps, route propagation, hub vs single VPC, Terraform export, and provider limits.
This page summarises Cloudflare documentation on Cloudflare One Multi-Cloud Networking (formerly Magic Cloud Networking) and cloud on-ramps that connect public cloud networks to Cloudflare WAN (formerly Magic WAN). The focus is what on-ramps are, when to use a single virtual private cloud (VPC) versus a hub, how route propagation works, and how to export Terraform without conflicting with dashboard deployment.
Multi-Cloud Networking and cloud on-ramps: what they are
Section titled “Multi-Cloud Networking and cloud on-ramps: what they are”Cloud on-ramps are the managed VPN paths Multi-Cloud Networking creates from your cloud provider into Cloudflare WAN. Cloudflare configures both sides using each provider’s native VPN, without extra compute VMs.
Multi-Cloud Networking (formerly Magic Cloud Networking) (beta) allows you to create on-ramps from your cloud networks to Cloudflare WAN (formerly Magic WAN). Cloudflare will create virtual private network (VPN) tunnels between Cloudflare WAN and your cloud provider, configuring both sides of the connection on your behalf. Cloudflare orchestrates the cloud provider’s native VPN functionality, without requiring deployment of any additional compute virtual machines (VMs).
— Cloudflare, Cloud on-ramps
Multi-Cloud Networking is an automation layer on top of that process: it discovers cloud resources and creates tunnels and routes on the cloud side and on Cloudflare WAN.
Multi-Cloud Networking (formerly Magic Cloud Networking) is an automation layer that simplifies connecting cloud environments to Cloudflare WAN. Rather than manually configuring IPsec tunnels, Multi-Cloud Networking automatically discovers your cloud resources and creates the necessary VPN tunnels and routes on both sides (cloud provider and Cloudflare WAN).
— Cloudflare, Connectivity options
It is not a separate tunnel product—it drives AWS VPN Gateway, Azure VPN, and GCP Cloud VPN for IPsec to Cloudflare WAN.
Prerequisites before you create a cloud on-ramp
Section titled “Prerequisites before you create a cloud on-ramp”Before creating on-ramps, Cloudflare expects a WAN-capable account, a finished cloud integration, and supported resources in the target environment.
From Cloud on-ramps:
- Have a Cloudflare WAN account (contact your account team).
- Complete setting up your cloud provider (see Get started).
- Have the correct cloud resources; see Reference per provider.
Get started explains that after you grant Cloudflare credentials, discovery fills the Cloud resource catalog (VPCs, subnets, VMs, route tables, routes). If discovery looks incomplete right after IAM changes propagate, retry discovery—a note repeated for AWS and GCP in that guide.
Supported cloud on-ramp types and providers
Section titled “Supported cloud on-ramp types and providers”Single VPC vs hub on-ramp
Section titled “Single VPC vs hub on-ramp”There are two on-ramp types: single VPC and hubs.
| Type | What it does | Use when |
|---|---|---|
| Single VPC | One VPC connects to Cloudflare WAN via VPN | You have a single VPC to connect |
| Hub | Multiple VPCs share a cloud VPN hub (e.g. AWS Transit Gateway) to one WAN tunnel | You need several VPCs with inter-VPC reachability |
— Table aligned with Cloudflare, Connectivity options
A hub is a cloud VPN gateway that peers with multiple VPCs so they share one tunnel to Cloudflare WAN. For hub on-ramps, Cloudflare always manages the VPN tunnel between Cloudflare WAN and the hub. Optionally it can Manage VPC peering (attach VPCs to the hub) and Manage hub peering (peer regional hubs so VPCs in different regions can talk). Details are in Cloud on-ramps — Hubs.
AWS, Azure, and GCP support matrix
Section titled “AWS, Azure, and GCP support matrix”| Cloud provider | Single VPC | Hubs |
|---|---|---|
| AWS | Yes | Yes |
| Azure | Yes | No (single VPC only in docs) |
| GCP | Yes | No (single VPC only in docs) |
— Cloudflare, Cloud on-ramps — Available on-ramps
Route propagation: cloud to WAN and WAN to cloud
Section titled “Route propagation: cloud to WAN and WAN to cloud”Configure route propagation decides where Cloudflare installs routes. Both directions are usually required for working connectivity.
During on-ramp setup you typically choose:
- Add routes for your Cloudflare WAN address space to your cloud network — installs routes in the cloud toward Cloudflare WAN (customisation is described under Cloudflare WAN address space in Cloudflare WAN docs; the cluster only references that topic by name).
- Add routes for your cloud network to Cloudflare WAN — installs routes in Cloudflare WAN toward your cloud prefixes.
Installing these routes is required to correctly configure both Cloudflare WAN and your cloud provider, and ensure successful communication between them.
— Cloudflare, Cloud on-ramps
How to create a single-VPC cloud on-ramp in the dashboard
Section titled “How to create a single-VPC cloud on-ramp in the dashboard”Single-VPC on-ramps suit one VPC that should connect directly to Cloudflare WAN. The workflow lives on the Connectors Cloud (beta) tab; full steps are in Cloud on-ramps — Single virtual private cloud and the parallel Configure cloud on-ramps page.
- Open Connectors, Cloud (beta), Add new on-ramp, then Connect an existing VPC to Cloudflare.
- Name the on-ramp, pick AWS, GCP, or Azure, and select the network from existing cloud integrations.
- On Configure route propagation, set both WAN↔cloud route options (keep cloud-side propagation enabled unless you will configure routing manually).
- Continue, review cloud changes, and Approve changes.
After approval, creation succeeds in the UI, but the on-ramp can take up to an hour before it is usable. Cloud provider VPN gateways may need 15–45 minutes to provision—plan for that delay per Connectivity options — Deployment notes.
Hub flows (Connect an existing hub / Create a new hub & connect it to Cloudflare) follow the same Connectors entry points with extra peering steps; see Cloud on-ramps sections Connect to an existing hub and Create a new hub.
Terraform download for cloud on-ramps: when and how
Section titled “Terraform download for cloud on-ramps: when and how”Why export Terraform for an on-ramp
Section titled “Why export Terraform for an on-ramp”You can download Terraform for a cloud on-ramp to review the proposed build before Cloudflare applies it, or to deploy through your own infrastructure-as-code pipeline.
Magic Cloud can scan and discover existing network resources and generate the required terraform files to automate cloud resource deployment using their existing infrastructure-as-code workflows for cloud automation.
— Cloudflare, Generate customized terraform files
The stable how-to is Set up with Terraform on the cloud on-ramps page.
What the download contains
Section titled “What the download contains”The package includes:
main.tf— Terraform for new resources for the on-ramp.instructions.txt— changes for existing cloud resources.
To plan and apply, use the Cloudflare Terraform provider plus the cloud provider’s provider. Cloudflare states you need your Cloudflare Global API Key, not an API Token.
Download during creation vs for an existing on-ramp
Section titled “Download during creation vs for an existing on-ramp”- New on-ramp: after Configure route propagation, choose View download options instead of Continue—then Download file and continue (review and still deploy with Cloudflare) or Download file and exit (you apply Terraform yourself). See Download Terraform configuration for a new on-ramp.
- Existing on-ramp: Cloud on-ramps → ⋮ → Download as Terraform on the same page.
Pick one control plane: fully managed in the dashboard, or fully owned in Terraform after Download file and exit.
What Cloudflare changes in AWS, Azure, and GCP
Section titled “What Cloudflare changes in AWS, Azure, and GCP”Reference lists orchestration side effects—useful for change review and security design.
AWS on-ramp side effects
Section titled “AWS on-ramp side effects”Examples include a customer-managed prefix list Cloudflare WAN and Cloudflare Edge, a new Virtual Private Gateway on the VPC (fails if one is already attached), route propagation into VPC route tables, and Cloudflare WAN routes per VPC CIDR. NSG rules may need to allow the prefix list (entries count toward NSG rule quotas).
Azure on-ramp side effects
Section titled “Azure on-ramp side effects”Cloudflare may create a Virtual Network Gateway and a GatewaySubnet (/27). On-ramp creation fails if the VNet cannot fit that subnet or the gateway cannot be placed. Deployment notes recommend a /20 or larger VNet to reduce address exhaustion. Gateway route propagation affects all route tables; deleting an on-ramp does not automatically disable propagation. Default NSG rules may expose the VNet to Cloudflare WAN unless you add Deny rules.
GCP on-ramp side effects
Section titled “GCP on-ramp side effects”Cloudflare reserves a public IP, creates a VPN Gateway and two VPN Tunnels, adds Cloudflare WAN prefix routes in the VPC, and adds WAN routes for all subnet CIDRs (including cross-region paths subject to inter-region pricing). VM traffic still obeys VPC firewall rules.
Cost visibility, edit, and detach
Section titled “Cost visibility, edit, and detach”Cost estimates: Connectors → Cloud (beta) → on-ramp ⋮ → Associated Resources shows estimated monthly list price for linked resources (Cost estimates). Changelog notes also mention total and delta cost when deploying managed configuration (Multi-Cloud Networking changelog).
Edit: change name/description and Propagation settings; approve changes after review (Edit a Cloudflare WAN cloud on-ramp).
Delete / detach: Detach stops Cloudflare management of resources created for the on-ramp but leaves them in place; connectivity is not torn down by detach alone (Delete a Cloudflare WAN cloud on-ramp).
Cloud provider VPN gateway and data transfer charges apply in addition to Cloudflare WAN fees (Deployment notes).
Common mistakes when building WAN cloud on-ramps
Section titled “Common mistakes when building WAN cloud on-ramps”- Turning off cloud-side WAN route propagation without preparing transit gateways, route tables, and VPN config manually.
- Running Terraform and dashboard deployment on the same on-ramp (resource conflicts).
- Assuming the on-ramp is ready immediately—allow up to an hour plus cloud gateway provisioning time.
- Azure VNet too small for
GatewaySubnet(/27); prefer/20or larger per deployment notes. - AWS VPC already has a Virtual Private Gateway—on-ramp creation fails per Reference — AWS.
- Expecting discovery to be complete instantly after new IAM—re-run discovery after propagation (Get started).
Related discovery and architecture context
Section titled “Related discovery and architecture context”Cloud resource catalog is a read-only snapshot refreshed in the background; you can inspect resources or Download catalog (ZIP/JSON) from Connectors (Manage resources).
For architecture patterns, Connectivity options places Multi-Cloud Networking alongside Cloudflare Tunnel and Cloudflare One Client in a cloud-first design, and notes Cloudflare Mesh as an alternative when not using Cloudflare WAN (with Legacy routing mode constraints).
How to check this on your site
Section titled “How to check this on your site”- Confirm Cloudflare WAN and Multi-Cloud Networking are enabled for your account, matching connectivity options requirements.
- In Connectors → Cloud (beta), verify your cloud integration completed and the Cloud resource catalog lists expected VPCs and route tables (Get started, Manage resources).
- After creating an on-ramp, wait for provisioning, then confirm route propagation choices match what you expect in the cloud console and in Cloudflare WAN (Reference).
- Open Associated Resources for the on-ramp and review estimated monthly cloud costs (Cost estimates).
- You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page does not match your dashboard or Cloudflare’s docs, email yimasynthetic@gmail.com with the page URL and the exact statement you are questioning, and we will clarify or correct it.