HiddenCloudCost

Provider comparison · Updated 2026-09-20

Lambda vs EC2 vs Fargate Cost Comparison

Side-by-side pricing including compute, egress, storage, load balancer, managed database, and the hidden costs that don't show up in basic estimates. All prices are on-demand, monthly, in USD.

Amazon Web Services
Market leader. Most features, highest hidden costs.
Complexity: high★★★★★
Amazon Web Services
Market leader. Most features, highest hidden costs.
Complexity: high★★★★★

Compute pricing (on-demand, monthly)

TierAWSAWSAWS saves
Nano (1 vCPU / 512 MB)
t3.nano / t3.nano
$3.80/mo$3.80/mo-
Micro (1 vCPU / 1 GB)
t3.micro / t3.micro
$7.59/mo$7.59/mo-
Small (2 vCPU / 4 GB)
t3.medium / t3.medium
$30.37/mo$30.37/mo-
Medium (4 vCPU / 16 GB)
m7i.xlarge / m7i.xlarge
$147.17/mo$147.17/mo-
Large (8 vCPU / 32 GB)
m7i.2xlarge / m7i.2xlarge
$294.34/mo$294.34/mo-
XLarge (16 vCPU / 64 GB)
m7i.4xlarge / m7i.4xlarge
$588.67/mo$588.67/mo-

Egress cost - the surprise bill item

Data transferred out to the internet per month.AWS free tier: 100GB/month. After that: $0.09/GB.

Data out / monthAWSAWSDifference
10 GBFreeFree-
100 GBFreeFree-
500 GB$36$36-
1 TB$81$81-
5 TB$441$441-

Managed services pricing

Object Storage
AWS
$0.023/GB/mo
AWS
$0.023/GB/mo

S3 Standard. Request pricing adds up fast.

Load Balancer
AWS
~$16/mo
AWS
~$16/mo

ALB: $0.008/hour + LCU charges. Often $15-25/month for typical traffic.

Managed PostgreSQL
AWS
~$14/mo
AWS
~$14/mo

RDS PostgreSQL. Multi-AZ doubles the cost.

Hidden costs to watch for

NAT Gatewaycritical$32 to $100+/mo

Required for private subnet instances to reach the internet. $0.045/hour + $0.045/GB processed.

How to avoid: Use VPC endpoints for AWS services. Put dev workloads in public subnets. Or switch to a provider that does not charge for this.

Inter-AZ Data Transferhigh$10 to $200+/mo

$0.01/GB each way between Availability Zones. Multi-AZ setups silently double your data transfer costs.

How to avoid: Co-locate services in the same AZ for dev. Use endpoint services to reduce cross-AZ calls.

Egress to Internetcritical$9 to $900+ per 100 GB/mo

$0.09/GB out after 100 GB free. APIs serving large payloads or media can generate hundreds in egress fees.

How to avoid: Use CloudFront (first 1 TB/month free). Or switch to DigitalOcean with included bandwidth.

RDS Multi-AZmedium2x your RDS bill/mo

Multi-AZ RDS doubles your database cost. Many developers enable this in production without realizing the cost impact.

How to avoid: Use single-AZ for dev/staging. Consider managed Postgres alternatives like Neon or Supabase.

CloudWatch Logsmedium$10 to $200+/mo

$0.50/GB ingested + $0.03/GB stored/month. High-traffic apps with verbose logging can spend $50-200/month just on logs.

How to avoid: Set log retention policies. Use log sampling. Or export to S3 and use Athena instead.

NAT Gatewaycritical$32 to $100+/mo

Required for private subnet instances to reach the internet. $0.045/hour + $0.045/GB processed.

How to avoid: Use VPC endpoints for AWS services. Put dev workloads in public subnets. Or switch to a provider that does not charge for this.

Inter-AZ Data Transferhigh$10 to $200+/mo

$0.01/GB each way between Availability Zones. Multi-AZ setups silently double your data transfer costs.

How to avoid: Co-locate services in the same AZ for dev. Use endpoint services to reduce cross-AZ calls.

Egress to Internetcritical$9 to $900+ per 100 GB/mo

$0.09/GB out after 100 GB free. APIs serving large payloads or media can generate hundreds in egress fees.

How to avoid: Use CloudFront (first 1 TB/month free). Or switch to DigitalOcean with included bandwidth.

RDS Multi-AZmedium2x your RDS bill/mo

Multi-AZ RDS doubles your database cost. Many developers enable this in production without realizing the cost impact.

How to avoid: Use single-AZ for dev/staging. Consider managed Postgres alternatives like Neon or Supabase.

CloudWatch Logsmedium$10 to $200+/mo

$0.50/GB ingested + $0.03/GB stored/month. High-traffic apps with verbose logging can spend $50-200/month just on logs.

How to avoid: Set log retention policies. Use log sampling. Or export to S3 and use Athena instead.

Calculate for your specific workload

The numbers above are for reference. Plug in your actual requirements to get a real cost estimate.

Open calculator