How I Conquer My AWS Costs

Reasoning about AWS costs using the AWS Cost Explorer and the AWS CLI

Photo by StellrWeb on Unsplash
  1. Go to Cost Management
  2. Open Cost Explorer
  3. I like to drill down to the Last 1 Day to see what is currently generating charges in the AWS account. So select 1D and Apply:
Select 1D and Apply to see most recent day.
Costs from last day.
The filters have auto-suggest.
ApiGatewayCache ranks highest among API Gateway Usage types in this AWS account
Filter by the Usage Type that’s ranking highest when grouping by usage type

Tag everything, so you can see exactly what apps are running up your AWS bill.

In my case, the APIs that had cache enabled didn’t have descriptive enough tags for me to do anything with them:

Grouping by Tag, once you’ve filtered by service and usage type, could reveal which API is making the billing charts.

If there are no API Gateway requests you don’t pay anything, but storage costs money regardless of whether you use it or not.

With API Gateway with default settings you pay nothing until the API is invoked. Paying $5/month for cache on an app you just forgot to delete is $5/month too much. So it’s worth identifying that using AWS Cost Explorer and the above script.

Solutions Architect @Smartronix. 11x AWS, 6x Azure, and 1x in GCP, Docker & ITIL. Opinions expressed in this blog are my own. Find me on YouTube!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store