S3 Wormhole: engineer routes cross-zone traffic through S3 and cuts AWS fees by 93%

An engineer has found a way around one of the cloud's most dreaded charges: S3 Wormhole, announced on Wednesday (December 2) by Colin Percival on his personal blog, Daemonic Dispatches, reroutes traffic between availability zones through Amazon S3 — and, in the author's benchmark, cuts transfer costs by 93%. The important detail: it is not an official AWS service — the announcement itself makes that clear in its FAQ — and it is in private preview.

Today, moving data between availability zones in the same Region costs $0.01 per GB in each direction — $0.02 per GB in total. Percival says the fear of that charge weighs more than the charge itself: many teams concentrate their application in a single zone, giving up the resilience that AWS's Well-Architected Framework recommends.

How the tunnel works

The trick exploits a rule in the price list: transfer between EC2 and S3 within the same Region is free. A Wormhole endpoint in the source zone receives the application's traffic and writes it to S3 as objects of up to 16 MiB; another endpoint, in the destination zone, reads the objects and injects the traffic back into the EC2 network. The service itself is free — you pay only for the EC2 instances running the endpoints and for the S3 requests, and data in transit is deleted as soon as it is delivered.

In the author's benchmark, with two endpoints on c8gn.8xlarge (Graviton4) instances and two machines generating load, the tunnel reached 10 Gbps of TCP across 128 parallel streams (iperf3) and 41.2 Gbps of UDP. At a sustained 10 Gbps, direct transfer would cost $90 per hour; through the Wormhole, $5.92 — $1.97 in PUTs, $0.16 in GETs and $3.79 for the two instances. An independent analysis recomputed the math from list prices and arrived at the same figures.

The announcement's own caveats

The announcement lists the conditions plainly. A gateway VPC endpoint is required — going through a NAT gateway, with its $0.045 per GB processing charge, cancels the savings. The endpoint instances are billed even when idle. Below roughly 270 kB per object, S3 request charges cost more than the fee being avoided. Latency and jitter are high by nature, and the author recommends the TCP BBR algorithm — which, he says, can often deliver over 10 times the throughput of TCP CUBIC. Security group rules that reference another security group do not work on tunnel traffic, which must be allowed by private IP or CIDR. And the technique only works within a single Region — besides not being HIPAA compliant.

The announcement circulated on Hacker News and was analyzed by independent publications. Anyone who wants to try the private preview can write to the email address given in the original post.

Image: diagram of the S3 Wormhole architecture, with pigeons carrying packets between availability zones — a nod to RFC 1149. Credit: Colin Percival / Daemonic Dispatches.

Sources

Transparency note: this article was produced with the assistance of artificial intelligence, cross-checked against public posts on X and internet sources, and reviewed before publication. Please consult the original sources to confirm the information.

By Muse