- Newest
- Most votes
- Most comments
In addition to Takahiros answer: AWS Direct Connect Security, Resiliency, and Interconnectivity
-
MACsec (Layer 2 Encryption): Implement IEEE 802.1AE MACsec for dedicated 10 Gbps and 100 Gbps connections. This provides hardware-accelerated, point-to-point encryption between the customer edge (CE) router and the AWS edge node, satisfying strict regulatory and compliance requirements for data in transit without the overhead of Layer 3 IPsec.
-
MACsec Fallback Policy (MKA): Explicitly define the MACsec Key Agreement (MKA) policy based on the organization's risk appetite:
-
Must-Secure: Enforces strict encryption. The link drops all traffic if MACsec negotiation fails, guaranteeing that no unencrypted data traverses the connection.
-
Should-Secure: Prioritizes network availability. The connection automatically falls back to unencrypted plaintext traffic if the MACsec session drops or fails to establish.
-
Redundancy & VPN Fallback: Adhere to the AWS Direct Connect Resiliency Toolkit (e.g., High or Maximum Resiliency models) by provisioning redundant connections across geographically diverse AWS Direct Connect locations. Implement an IPsec AWS Site-to-Site VPN over the public internet as an automated failover mechanism, utilizing BGP (e.g., AS-PATH prepending or Local Preference) to ensure seamless, dynamic traffic rerouting if the primary Direct Connect links degrade or fail.
-
Direct Connect SiteLink (Global Interconnect): Enable AWS Direct Connect SiteLink to establish direct, low-latency routing between multiple on-premises data centers or remote branch offices. This leverages the global AWS infrastructure as an enterprise WAN backbone, allowing site-to-site traffic to flow securely without needing to enter or be routed through an AWS Region VPC.
-
AWS Interconnect – multicloud: see also, "AWS and Microsoft Azure collaborate to expand multicloud networking" -> AWS and Microsoft Azure collaborate to expand multicloud networking
For a coexistence period of weeks to months, the usual answer is site-to-site VPN with BGP between a hub on each side. Add dedicated connectivity only if bandwidth, latency, or duration justify it. The details below come from what tends to go wrong in practice.
1. VPN or dedicated connectivity
Start with site-to-site VPN. Use AWS Transit Gateway (or a VGW) connected to an Azure VPN Gateway, or to an Azure Virtual WAN hub, with BGP.
- Run the Azure gateway active-active and create two AWS VPN connections, one per Azure gateway instance. That gives you four tunnels and no single point of failure.
- Each AWS tunnel tops out at about 1.25 Gbps. With Transit Gateway and ECMP across tunnels, you can aggregate more.
- It can be built in a day, costs little, and is easy to tear down at the end, which matters for a temporary link.
Consider Direct Connect plus ExpressRoute when:
- Ongoing replication, such as database log shipping or storage sync, needs sustained multi-Gbps throughput or consistent latency.
- The coexistence period is long, around six months or more, so the setup lead time and cost pay off.
- Security or compliance rules say traffic can't cross the internet, even encrypted.
The usual pattern is for both circuits to meet at a cloud exchange such as Equinix Fabric or Megaport, where a virtual router connects them. Expect weeks of lead time, so order early if you think you'll need it. Also check whether AWS or Microsoft now offer a native cross-cloud interconnect in your regions. This area has been changing, so verify current availability.
Don't push bulk data through the tunnel. Move large one-time datasets at the storage layer instead: AzCopy directly from S3, Azure Storage Mover, or Data Box for very large volumes. Keep the network link for live application traffic and incremental sync.
2. Hub architecture or point-to-point
Use a hub on each side. On AWS, that's Transit Gateway or Cloud WAN. On Azure, use a Virtual WAN hub or a hub VNet with the gateway. Connect the two hubs once.
- Per-VPC or per-VNet tunnels multiply quickly, and as workloads move you end up editing routes in many places.
- With hubs, migrating a workload usually means changing a route advertisement or a spoke attachment, not rebuilding tunnels.
- Inspect traffic at one point, not both. If cross-cloud traffic passes through a stateful firewall in AWS and another in Azure, you double the latency, double the troubleshooting, and double the risk of asymmetric drops. Choose one inspection point, often the destination side, and keep the other side to simple routing.
3. DNS
Use each cloud's managed resolver as the bridge between them:
- AWS: Route 53 Resolver inbound and outbound endpoints.
- Azure: Azure DNS Private Resolver inbound and outbound endpoints.
- Set up conditional forwarding both ways. AWS forwards Azure private zones to the Azure inbound endpoint. Azure forwards AWS private hosted zones to the Route 53 inbound endpoint.
Lessons that come up repeatedly:
- Each name needs exactly one authoritative zone. If the same private zone exists on both sides, results depend on where the query came from. This split-brain problem is the most common DNS issue during migrations.
- Use DNS as the cutover mechanism. Applications call
orders.internal.example.com, and migrating a workload means changing that record. Lower TTLs a day or two before each cutover. - Forward Azure Private Link zones (
privatelink.*) to the Azure resolver. Otherwise AWS clients resolve Azure PaaS services to public IPs and bypass the tunnel.
4. Routing and asymmetric-routing problems
- CIDR overlap: confirm before you start that address ranges don't overlap. If they do, plan NAT at the hub now, because it's much harder to add later.
- BGP ASNs: use distinct ASNs on each side. The Azure VPN Gateway uses 65515 by default, and Azure reserves some other ASNs, so don't reuse that number on the AWS side.
- Asymmetric routing: this is the issue that most often surfaces weeks into the project.
- Active-active tunnels, or a VPN running alongside DX and ExpressRoute, mean return traffic can take a different path from the request. Stateful firewalls then drop it.
- Make path preference deterministic: use AS-path prepending or MED so both sides prefer the same path, and keep stateful inspection where both directions pass through it.
- Be especially careful when you add a dedicated circuit later. Leave the VPN as a lower-preference backup, and test failover both ways.
- MTU and MSS: IPsec overhead causes intermittent failures on large packets, such as hanging TLS handshakes and stalled database connections. Clamp TCP MSS to about 1350 on the tunnel interfaces.
- Route limits: AWS VPN connections and Azure gateways have limits on the number of BGP routes. Advertise summarized prefixes, not every subnet.
- Unintended transit: if on-premises is also connected to either cloud, make sure on-premises traffic doesn't start transiting AWS to reach Azure, or the reverse, unless you intend it to.
5. Lessons specific to long coexistence
- Migrate dependency groups together. A chatty application in Azure calling a database still in AWS can turn sub-millisecond calls into 10–30 ms calls, and performance problems follow. Map dependencies first, and move each application together with its data store.
- Budget for egress. AWS charges data transfer out on all traffic to Azure. Over months of replication and cross-cloud calls, this can become a significant line item, so track it from the first week.
- Pin IPsec parameters explicitly on both sides: IKEv2 settings, encryption, DH group, lifetimes, and DPD. Mismatched defaults cause tunnels to drop at rekey, often at 3 a.m.
- Monitor both ends. Watch
TunnelStatein CloudWatch and BGP and tunnel metrics in Azure Monitor, and alert when a tunnel is down, not only when all of them are. - Plan decommissioning from the start. Keep a record of which routes, DNS forwarders, security group rules, and NSG rules exist only for the migration, so the cleanup is a checklist rather than detective work.
Relevant content
asked 3 years ago
asked 4 years ago
asked 3 years ago

If my answer was helpful, I would appreciate it if you could mark it as the accepted answer.