HomeCase StudiesReducing AWS Spend by 38% for a B2B SaaS Platform
Cloud Architecture

Reducing AWS Spend by 38% for a B2B SaaS Platform

From $52K/month to $32K/month through architectural discipline.

5 min read

Monthly savings

$20K

Cost reduction

38%

RI coverage

74%

Three years of rapid scaling had left a B2B SaaS company with $52K in monthly AWS spend, almost none of it optimized — over-provisioned EC2 instances, no auto-scaling, a Reserved Instance coverage rate of 12%, and a team with no visibility into what was actually driving the bill. We cut that spend to $32K/month in eight weeks without touching a single customer-facing feature. The work was architectural discipline applied methodically: measure, right-size, commit to pricing, and build the alerting to keep it that way.

Global cloud network infrastructure visualization

The Challenge

The company had scaled its AWS footprint reactively — when something was slow, they made it bigger. When a new service was needed, it got its own fixed EC2 instance. After three years of this, nobody had a clear map of what was running, what it was for, or whether it was actually being used. Reserved Instance coverage had stalled at 12% because the team didn't trust their own utilization data enough to commit.

Data transfer costs were a particular blind spot. Cross-AZ traffic was substantial but completely unmonitored, and several services were pulling data from S3 in patterns that incurred retrieval fees that had never been noticed. Storage costs were growing 8% month-over-month purely because no lifecycle policies existed — data that hadn't been touched in 18 months was still sitting in Standard tier.

  • EC2 fleet running at 15–30% average CPU utilization with no auto-scaling policies
  • Reserved Instance coverage at 12% — the rest billed at on-demand rates
  • No resource tagging by workload or team — cost attribution was impossible
  • S3 lifecycle policies absent, with cold data accruing Standard storage fees indefinitely
Server room hardware infrastructure

Eight Weeks to $20K Savings

  • ✓ Full workload inventory and tag-based cost attribution across all accounts
  • ✓ Spot Fleet adopted for all batch processing, reducing compute cost by over 70% on those jobs
  • ✓ Reserved Instances purchased for committed baseline workloads, coverage raised from 12% to 74%
  • ✓ S3 lifecycle policies tiering cold data to Glacier automatically after 30 days

The Approach

We started with two weeks of pure measurement before changing anything. Every running EC2 instance, RDS cluster, S3 bucket, NAT Gateway, and data transfer pattern was inventoried and tagged by workload, team, and environment. CloudWatch metrics were pulled for 90-day utilization windows across CPU, memory (via CloudWatch Agent), and network I/O. AWS Compute Optimizer was run against the full fleet — its recommendations became our right-sizing baseline, not a starting guess.

With utilization data in hand, we separated workloads into three categories: steady-state services that warranted Reserved Instance commitment, variable or bursty workloads suited for Spot Fleet or auto-scaling groups, and genuinely idle resources that should be terminated. The third category alone accounted for roughly $6K/month. We restructured the approach so that no change was made without a rollback plan, and we sequenced migrations by workload risk — batch jobs first, then internal services, then customer-adjacent infrastructure.

Network cables and infrastructure hardware

Architecture & Implementation

The EC2 right-sizing followed Compute Optimizer's recommendations with one adjustment: we sized to the 95th percentile utilization rather than the average, preserving headroom for traffic spikes without over-provisioning to the previous level. Critical workloads were migrated from fixed instance types to 1-year Reserved Instances for the committed baseline, with auto-scaling groups layered on top to handle demand above that baseline using on-demand capacity.

flowchart TD
    subgraph BEFORE[Before at 52K per month]
        A1[Oversized EC2 m5.4xlarge fleet]
        A2[0 percent RI coverage - all on-demand]
        A3[Cross-AZ traffic unoptimized]
        A4[S3 Standard for all tiers]
    end
    subgraph AFTER[After at 32K per month]
        B1[Right-sized m7g plus Spot for batch]
        B2[72 percent Savings Plan coverage]
        B3[VPC Endpoints and same-AZ routing]
        B4[S3 Intelligent-Tiering and Glacier]
    end
    BEFORE -->|38 percent reduction - 20K per month saved| AFTER
    style BEFORE fill:#fef2f2,stroke:#fca5a5
    style AFTER fill:#f0fdf4,stroke:#86efac

Batch processing — report generation, email delivery, data export jobs — was moved entirely to Spot Fleet with interruption handling built into the job framework. These workloads tolerate interruption well and now run at roughly 28% of their previous on-demand cost. Spot Instance interruption notices trigger graceful checkpointing, so no job loses more than 90 seconds of work.

VPC routing was restructured to minimize cross-AZ data transfer. Services in the same AZ were co-located where possible, and where cross-AZ traffic was unavoidable, we documented it explicitly. S3 lifecycle policies were applied across all buckets: Standard → Standard-IA after 30 days of no access, Standard-IA → Glacier after 90 days. CloudWatch cost anomaly detection was configured with SNS alerts routed to the engineering Slack channel — any single-day cost spike above 20% of the trailing 7-day average triggers an immediate notification.

"We knew we were overspending but we'd been flying blind for three years. The tagging and attribution work alone was worth it — for the first time we could see exactly which team and which workload was responsible for every dollar. The savings were real, but the visibility was what changed how we operate."

Outcomes

  • Monthly AWS spend reduced from $52K to $32K — a 38% reduction delivering $20K/month in savings
  • Annualized impact exceeds $240K with no degradation to service performance or reliability
  • Reserved Instance coverage increased from 12% to 74% of committed baseline compute
  • Spot Fleet adopted for all non-critical batch workloads — those jobs now run at 28 cents on the dollar
  • Zero unplanned downtime during the eight-week migration sequence
  • Cost anomaly alerting operational within 30 days, catching a misconfigured NAT Gateway within 48 hours of deployment

Technologies Used

EC2Reserved InstancesSpot FleetS3CloudWatchCompute OptimizerVPCSNS

Have a similar challenge?

We are direct about what we can and cannot help with. Schedule a scoping call and we will tell you within the first conversation.

All Case Studies