From this case study you will learn
- how changing the S3 storage class cut the cost from $20,000 to $1,500 a month
- why an old Kubernetes version raises the EKS bill
- how to find data transfer you pay for instead of the recipient
- what a daily cost dashboard in Grafana shows
The AWS bill grew month after month, and the client did not know which services were behind it. We started with an analysis of where to save, then made the changes one by one and measured the effect of each.
Analysing the bill
We split costs by service, account and environment. For instances we compared the provisioned resources with actual CPU and memory use. We also checked network flows and data transfer, because that line on the invoice is the one that surprises people most.
The analysis pointed to five areas: S3 storage, oversized instances, the Kubernetes version, unused resources and transfer to external parties.
S3: a storage class that fits the data
Most data in S3 was written once and read rarely, yet it sat in a class meant for frequent access. We moved it to a cheaper storage class chosen for how often the application actually reads it. Lifecycle rules now move new data automatically.
The cost of storing this data fell from $20,000 to $1,500 a month.
Instances and Kubernetes
After measuring, we downsized instances that used only a small part of their resources most of the time, and moved to newer instance generations that give more power for the same price. Only after these changes did we buy Savings Plans, so the commitment would not lock in oversizing.
The EKS cluster ran a Kubernetes version that had left standard support. AWS then charges for Extended Support, several times the standard cluster fee. We upgraded Kubernetes to the latest version and the fee went away.
We also removed resources nobody used: detached volumes, old snapshots, idle load balancers and IP addresses.
Data transfer to partners
The transfer analysis showed that the client shared S3 data with external parties. The bucket did not use Requester Pays, so the client paid for every download of several terabytes, about $1,000 per transfer.
We helped identify who downloaded what and how much. The client moved this cost to the data recipients and now invoices them for it.
Daily cost in Grafana
Finally, we set up a Grafana dashboard that shows every day the cost of the whole infrastructure, the forecast for the end of the month, the cost of each service and the saving against the state before the changes. When the daily cost crosses an agreed threshold, an alert goes out.
The client sees the effect of every change the next day, not on the invoice.
Result
The largest saving came from the S3 storage class change: over 92 percent less for that data. On top of that came smaller and newer instances, Savings Plans, leaving Extended Support and transfer paid by the recipients. We describe the same way of working in our FinOps service.
Write to us