cloudflare_static_route (Resource)

Provides a resource, that manages Cloudflare static routes for Magic Transit or Magic WAN. Static routes are used to route traffic through GRE tunnels.

Example Usage

resource "cloudflare_static_route" "example" {
  account_id  = "f037e56e89293a057740de681ac9abbe"
  description = "New route for new prefix 192.0.2.0/24"
  prefix      = "192.0.2.0/24"
  nexthop     = "10.0.0.0"
  priority    = 100
  weight      = 10
  colo_names = [
    "den01"
  ]
  colo_regions = [
    "APAC"
  ]
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

$ terraform import cloudflare_static_route.example <account_id>/<static_route_id>