Managing Services

DE-CIX PDM Team Updated by DE-CIX PDM Team

Creating and Managing Services Using the IX-API Terraform Provider

This page shows how to create and manage DE-CIX Cloud ROUTER resources and related configurations.

Recommended order:

1. Create the Cloud ROUTER (VRF)

2. Attach network services (P2P VC or Cloud VC)

3. Configure routing policies and prefix lists

4. Add static routes if required

Cloud ROUTER (VRF)

resource "ixapi_de_cix_cloud_router" "main" {
managing_account = var.account_id
consuming_account = var.account_id
billing_account = var.account_id
product_offering = var.product_offering_id
asn = 65000
capacity = 1000
external_ref = "my-cloud-router"
}

Network Service Configs (NSC)

A Network Service Config (NSC) attaches a Cloud ROUTER to a network service and defines one BGP session.

There are two types:

- P2P VC (point-to-point virtual circuit)

- Cloud VC (cloud connectivity)

Network Service Config: Point-to-Point Virtual Circuit (P2P VC)

resource "ixapi_de_cix_cloud_router_network_service_config_p2p_vc" "session" {
managing_account = var.account_id
consuming_account = var.account_id
billing_account = var.account_id
cloud_router = ixapi_de_cix_cloud_router.main.id
network_service = var.p2p_vc_network_service_id
network_connection = var.network_connection_id
address = "10.0.1.1/30"
bgp_neighbor = "10.0.1.2"
bgp_neighbor_asn = 64512
bgp_password = var.bgp_password
admin_status = "enabled"
bfd_enabled = true

vlan_config {
vlan_type = "dot1q"
vlan_id = 100
}
}

Network Service Config: Cloud Virtual Circuit (Cloud VC)

resource "ixapi_de_cix_cloud_router_network_service_config_cloud_vc" "cloud_session" {
managing_account = var.account_id
consuming_account = var.account_id
billing_account = var.account_id
cloud_router = ixapi_de_cix_cloud_router.main.id
network_service = var.cloud_vc_network_service_id
address = "10.0.2.1/30"
bgp_neighbor = "10.0.2.2"
bgp_neighbor_asn = 64513
bgp_password = var.bgp_password
admin_status = "enabled"
bfd_enabled = true
handover = 1
external_ref = "cloud-session-fra"
}

Prefix Lists, Policies, and Static Routes

  • Prefix lists define route matching conditions
  • Policies control routing behavior
  • Static routes define next-hop routing

See the End-to-End Example for a complete setup.

How did we do?

Provider Configuration

State Management

Get in touch