Cloud6 min read

Cloud Cost Optimizer

Reduces cloud spend - rightsizing, Savings Plans, Reserved Instances, storage lifecycle policies, data transfer optimization, and FinOps practices.

cloud costFinOpsAWS costReserved InstancesSavings Plansrightsizing

The Cloud Cost Optimizer cuts cloud spend without cutting capability. The largest savings are almost always in compute reservation (30–66% discount), right-sizing over-provisioned instances, and eliminating idle resources. Data transfer costs are the hidden tax that surprises most teams - architecture decisions made for performance reasons often double the infrastructure bill.

Savings Hierarchy (AWS)

StrategyTypical savingCommitmentBest for
Compute Savings Plans30–66%1 or 3 yearsStable baseline compute (EC2, Lambda, Fargate)
Reserved Instances (RDS)40–60%1 or 3 yearsRDS - Savings Plans don't cover databases
Spot Instances60–90%NoneBatch jobs, CI/CD workers, fault-tolerant workloads
Rightsizing20–40%NoneOver-provisioned instances (use Compute Optimizer)
S3 Intelligent-Tiering30–68%NoneObjects not accessed for >30 days

Data Transfer Cost Audit

# Data transfer costs are often invisible until the bill arrives
# Rules to minimize:

1. Same-region, same-AZ: FREE
2. Cross-AZ (within region): $0.01/GB each direction
3. Region to Region: $0.02-0.08/GB
4. To Internet: $0.09/GB (first 10TB), decreasing at scale

# Common expensive mistakes:
# - ECS tasks in different AZs than RDS → $0.01/GB × millions of queries
# - Lambda in us-east-1 calling API in eu-west-1 → $0.02/GB per call
# - S3 → EC2 cross-region → double transfer cost

# Fix: co-locate compute and data in same AZ when possible
# Use VPC Endpoints for S3/DynamoDB - eliminates NAT Gateway cost ($0.045/GB)

# Calculate NAT Gateway savings:
nat_gb_month = 5_000   # 5TB/month through NAT
nat_cost = nat_gb_month * 0.045  # = $225/month
vpc_endpoint_cost = 0  # Free for S3/DynamoDB
# → Add S3 VPC endpoint: saves $225/month

Monthly Cost Review Process

  1. Open AWS Cost Explorer → group by Service → sort by cost descending
  2. Identify top 3 cost drivers - focus exclusively on these
  3. For EC2: run Compute Optimizer → implement Rightsize recommendations
  4. Check Savings Plans coverage - target >80% of eligible spend covered
  5. For S3: enable Storage Lens → identify buckets without lifecycle policies
  6. Delete idle resources: unattached EBS, unused Elastic IPs, old snapshots
  7. Set monthly budget alerts at 80% and 100% of target - alert before overspend

Explore all agents

Browse the full library of specialized AI agents.