Thalaxo

Book a Demo

30 min · Thalaxo FinOps Platform

Loading calendar...

FinOps insight4 min read

The Egress Trap: Why You Feel Locked Into Your Cloud Provider

4 min readNabil Hsissi

What is the Cloud Egress Trap & Lock-in?

A forgotten development database racking up compute costs is a classic FinOps failure. But a far more subtle issue is the cloud egress trap lock-in, where the cost of moving data out of a provider’s network becomes so prohibitive it effectively prevents you from migrating services or adopting a multi-cloud strategy. Egress fees are charges for data transferred from a cloud provider’s network to the public internet. While seemingly minor per gigabyte, these costs scale unpredictably with application traffic, creating a powerful form of vendor lock-in. Unlike idle VMs, which are pure waste, egress costs are tied to legitimate application activity, making them harder to identify and control without architectural changes.

Quantifying Egress: The Blind Spot in Native Tooling

Native tools like AWS Cost Explorer are powerful for single-cloud analysis but often obscure the true impact of egress. Costs are typically bucketed under broad “Data Transfer” categories, making it difficult to distinguish between internal traffic, cross-region transfers, and costly internet-bound data. To get a clear picture, you must query billing data with precision. An average of 32% of cloud spend is identified as waste, according to the FinOps Foundation State of FinOps 2024 report, and unmanaged egress is a significant contributor to this figure.

I run this query monthly to isolate the top sources of outbound data transfer from EC2, which is often the first sign of an application silently bleeding costs. It separates internet egress from other data transfer types.

# Find the cost of data transfer from EC2 to the internet for the last month
aws ce get-cost-and-usage \
  --time-period Start=$(date -v-1m +%Y-%m-01),End=$(date +%Y-%m-01) \
  --granularity MONTHLY \
  --metrics "UnblendedCost" \
  --group-by Type=DIMENSION,Key=USAGE_TYPE \
  --filter '{ "Dimensions": { "Key": "USAGE_TYPE_GROUP", "Values": [ "EC2: Data Transfer - Internet (Out)" ] } }'

This command provides raw data, but it doesn’t explain the ‘why’. Is it a chatty microservice, large media files being served directly, or a database replication process? Answering this requires cross-referencing with application logs and monitoring tools. This manual correlation is where many FinOps efforts stall, a problem further detailed in The 3 Cloud Costs AWS Cost Explorer Will Never Show You.

Architectural Strategies to Mitigate Egress Fees

Escaping the egress trap is less about finding a cheaper provider and more about smart architectural design. The goal is to minimize data journeys across the public internet.

  • Content Delivery Networks (CDNs): For web applications, a CDN like CloudFront or Cloudflare is the first line of defense. By caching static assets (images, videos, JS/CSS) at edge locations closer to users, you serve traffic from the CDN’s network, not your origin servers. This drastically reduces data transfer out of your primary cloud region.
  • Colocate Compute and Data: If a service in AWS needs frequent access to a database in GCP, you will pay egress fees on every query response. Whenever possible, keep high-bandwidth services within the same provider and region. If multi-cloud is necessary for resilience or specific features, design interactions to be low-frequency and asynchronous.
  • Use Provider Peering and Direct Connections: For hybrid or multi-cloud setups with predictable, high-volume traffic, services like AWS Direct Connect or Azure ExpressRoute offer a private, dedicated network connection. While they have their own costs, they provide lower data transfer rates and more consistent performance than the public internet.

For Azure users, you can quickly list Network Watcher Flow Logs to begin analyzing traffic patterns between VMs and external endpoints. This is a starting point for identifying which resources are responsible for high data transfer.

# List all Network Watcher flow logs in a resource group to find traffic data
az network watcher flow-log list \
  --resource-group my-production-rg \
  --query "[].{Name:name, Target:targetResource, Status:enabled}" \
  --output table

Conclusion: Visibility Before Optimization

The cloud egress trap is an architectural problem with a financial symptom. Before you can optimize, you need multi-cloud visibility that native tools cannot provide. You must be able to see not just that you are spending money on data transfer, but which specific resources are talking to which external endpoints and why. For teams managing workloads across AWS, Azure, and GCP, this unified view is critical.

Thalaxo provides this visibility by connecting to multiple cloud providers through its integrations, correlating cost data with resource-level metrics. It automates the detection of anomalous egress patterns that might signal a misconfigured service or an architectural inefficiency. While Thalaxo is a newer platform (launched 2025) with its SOC 2 Type II audit in progress, it is designed specifically for the multi-cloud visibility challenges that lead to egress surprises. Check out the pricing to see how it scales from small teams to enterprise use.