---
title: "How DeepL keeps closest-exit routing during maintenance with AWS Cloud WAN"
description: "DeepL drains a single AWS Direct Connect link for maintenance by prepending AS_PATH on that link's virtual interface."
url: "https://swe.quest/articles/how-deepl-keeps-closest-exit-routing-during-maintenance-with-aws-cloud-wan-b0a60935b0ef004b"
canonical: "https://aws.amazon.com/blogs/architecture/how-deepl-keeps-closest-exit-routing-during-maintenance-with-aws-cloud-wan/"
source: "AWS Architecture Blog"
published: "2026-11-09"
difficulty: "hard"
kind: "Case study"
reading_minutes: 10
tags: ["networking","cloud","deployment"]
---

# How DeepL keeps closest-exit routing during maintenance with AWS Cloud WAN

A post on [AWS Architecture Blog](https://swe.quest/sources/aws-architecture.md), published 2026-11-09, 10 min read, Case study. Original: [https://aws.amazon.com/blogs/architecture/how-deepl-keeps-closest-exit-routing-during-maintenance-with-aws-cloud-wan/](https://aws.amazon.com/blogs/architecture/how-deepl-keeps-closest-exit-routing-during-maintenance-with-aws-cloud-wan/)

## Summary

DeepL drains a single AWS Direct Connect link for maintenance by prepending AS\_PATH on that link's virtual interface. The prepend shifts only the affected Region's egress to a peer core network edge, and every other Region keeps its closest exit. Local preference communities don't work for this because the Direct Connect gateway evaluates them before AS\_PATH, and they would re-rank exits for all Regions at once. The core network edge, by contrast, picks paths by AS\_PATH length. Use at least two prepends (DeepL uses five), since one prepend ties and Cloud WAN then still prefers the gateway path. Lower on-premises local preference so inbound traffic moves too, keep flows symmetric if a stateful firewall sits in the path, and budget for inter-Region transfer charges during the drain.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)

## Prerequisites

- BGP best-path selection ([easy posts on Networking](https://swe.quest/tags/networking.md?difficulty=easy))
- AS\_PATH prepending
- AWS Direct Connect ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))
- multi-Region AWS networking ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))

## Keywords

AWS Cloud WAN, AWS Direct Connect, BGP, AS\_PATH, DeepL, Direct Connect gateway, Megaport

## Related posts

- [Building the Next Evolution of Cloud Networks at Slack – A Retrospective](https://swe.quest/articles/building-the-next-evolution-of-cloud-networks-at-slack-a-retrospective-d090221ea56ede12.md): Slack Engineering · 2021-10-20 · Medium · 10 min read · Cloud platforms, Networking, DNS, Testing
  A year after launching Whitecastle, its AWS network redesign built on Transit Gateway, Slack found that proxy environment variables (http\_proxy/no\_proxy) were the biggest migration drag.
- [Traffic 101: Packets Mostly Flow](https://swe.quest/articles/traffic-101-packets-mostly-flow-e9828aceea724731.md): Slack Engineering · 2023-08-28 · Medium · 9 min read · Networking, Load balancing, DNS, Resilience, CDN & edge
  A Slack request reaches its main region in AWS us-east-1 through a chain of hops.
- [How Mux Routed Around a Major Network Outage | Mux](https://swe.quest/articles/how-mux-routed-around-a-major-network-outage-mux-cc1af5f8b010ee89.md): Mux · 2019-07-22 · Medium · 3 min read · CDN & edge, Video & media, Resilience, Networking, Incidents & postmortems
  During the June 24 Verizon BGP route leak (AS701), Mux Video's dynamic CDN selection, built on Citrix ITM and Radar RTT data, automatically shifted affected viewers from Fastly to Stackpath/Highwinds.
- [MagicRoute: Routing without physical routers](https://swe.quest/articles/magicroute-routing-without-physical-routers-ce976a6c4c51d5ec.md): Tailscale · 2026-10-19 · Easy · 6 min read · Networking, Load balancing, Resilience
  MagicRoute replaces Tailscale's DERP-region-based regional routing with per-client scoring of subnet routers, app connectors and Service hosts, currently using coarse geographic distance rather than latency.
- [Using mathematics to validate network configurations](https://swe.quest/articles/using-mathematics-to-validate-network-configurations-efd14d1365eac3d0.md): Amazon Science · 2026-11-11 · Easy · 4 min read · Networking, Formal methods, Cloud platforms, Security
  AWS validates Cloud WAN network segmentation statically by translating route tables, attachments and policy documents into logical rules and facts, then querying its automated-reasoning engine Tiros for which attachments can reach which others with which destination IPs.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
