AWS tags: Three simple rules for cost management
If you’ve been spending a significant amount of your company’s money on AWS , you’ve probably realized that you’d like to have better insight into where the money is going. AWS tags can help. Before you dive into tagging all your instances and S3 buckets though, it’s good to sit down and put together a tagging strategy that satisfies the bean counter requirements and makes sense for Ops.
First rule of AWS tags: Tag across reportable dimensions.
Tags work as a key-value pair. The key is the “how” you want to report the data, the value is the “what” you want to report on. The keys ultimately become the columns or dimensions by which you’ll want to break down your AWS cost reports. Be sure to use reportable dimensions for the keys (like Environment or Product) for the keys that are meaningful for your organization and logically group the parts of your business or platform.
Reporting by AWS tags is like any other kind of reporting; if it’s garbage in, you’ll get garbage out. It’s important to stay consistent with both the keys and values you use to denote different types of spending. Some of the more advanced users of tags will settle on a “required” list of 5 tags that all taggable resources should use. If you use an automated process to deploy AWS resources, you can work it into your workflow to require those tags. Whether you programmatically tag or do it manually, be sure to narrow in on what tag keys are the most important and be consistent about applying them across your infrastructure.
(Don’t sweat misspellings of keys though; Cloudability’s tag mapping lets you combine multiple keys into one dimension if you come across 5 spellings of a tough one like “envirnoment”…. )
Third rule of AWS tags: Use tags that will answer questions
Here are a few example keys for AWS tags and the types of questions they answer for you:
- Cost center: what resources are affecting your your bottom line?
- Business Unit: what group/department/division of your organization does this spending fall under?
- Service: you may want to track costs of multi-functional projects or services shared across departments, like a logging service or a analytics service.
- Product: how much is each of my profit centers costing to operate?
- Tier: which part of my app is driving AWS costs— web, app, db, backend, hadoop, auto-scaling, etc?
- Version: how do changes to my architecture impact total cost?
- Environment: are we leaving things on or over-provisioning for our staging, test or dev environments?
- Owner: which individual developer or team is responsible for this spending?
The big takeaway here is that before you can start getting good data out of your cost reports, you need to figure out what’s truly important to report on. There are a lot of options and I recommend taking a less-is-more approach initially. Determine which reports you need in order to make decisions that improve the efficiency of your spending, or simply getting the most valuable breakdown regarding where you costs are going.