---
title: "Pragmatic AWS: 4 ideas for using EC2 tags"
page_name: "Pragmatic AWS: 4 Ideas for Using EC2 Tags"
type: "blog"
slug: "aws-4-cool-ideas-for-using-of-ec2-tags"
published_at: "2012-05-15"
modified_at: "2025-05-09"
url: "https://www.sumologic.com/blog/aws-4-cool-ideas-for-using-of-ec2-tags"
canonical: "https://www.sumologic.com/blog/aws-4-cool-ideas-for-using-of-ec2-tags"
markdown_url: "https://www.sumologic.com/blog/aws-4-cool-ideas-for-using-of-ec2-tags.md"
lang: "en"
excerpt: "Sumo Logic offers tips for AWS | Use EC2 tags to track state, organize resources, and store relationships between resources, like instances and EBS volumes"
taxonomy_blog_category:
  - "AWS"
---

[ All blogs ](https://www.sumologic.com/blog "blog")[AWS](https://www.sumologic.com/blog/aws)

# Pragmatic AWS: 4 Ideas for Using EC2 Tags

[Sumo Logic](#blog-author-block-1)

May 15, 2012

0 min read 

[AWS](https://www.sumologic.com/blog/aws)

##### Table of contents

 

 

 

At Sumo Logic, we use Amazon Web Services (AWS) for everything. Our product, as well as all our internal infrastructure live in AWS. In this series of posts, we’ll share some useful practices around using AWS. In the first installment, I’ll outline some useful things we do with [tags](http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/Using_Tags.html "AWS Documentation on Tags").

### 1. Organize resources

We’ve decided on a hierarchical way of managing our AWS EC2 (Elastic Compute Cloud) resources:

Deployment
\+ Cluster
\+ Instance/Node

Within an AWS account, we can have multiple “deployments”. A deployment is a complete, independent copy of our product and uses the same architecture as our production service. Besides production, we use several smaller-scale deployments for development, testing and staging. Each deployment consists of a number of clusters, and each cluster of one or more instances.

Instances and their corresponding EBS (Elastic Block Store) volumes are tagged with Deployment, Cluster and Node tags. As an example, the third frontend node of our production deployment would be tagged like so:

Deployment=prod
Cluster=frontend
NodeNumber=3

There is also a direct mapping to DNS names. The DNS name for this node would be prod-frontend-3.

Combined with the filtering features in AWS Console (you can make any tag a column in the resource listings), this makes it very easy to navigate to a particular set of resources.

### 2. Display Instance Status

Tags can also be used as an easy way to display status information in the AWS console. Simply update a tag with the current status, whenever it changes.

The code that deploys our instances into EC2 updates a DeployStatus tag whenever it progresses from one step to another. For example, it could read:

2012-05-10 17:53 Installing Cassandra

This allows you to see what’s going on with instances at a glance.

### 3. Remember EBS Volume Devices

For EC2 instances that have multiple EBS volumes, when they need to be attached, our tools need to know which volume gets mapped to which device on the instance.

When we first create a volume, for example /dev/sdj, we create add a DeviceName tag to the volume with a value of /dev/sdj to track where it needs to be attached. Next time we attach the volume, we know it’s “proper place”.

### 4. Attribute and remind people of costs

All our developers are empowered to create their own AWS resources. This is a huge benefit for full-scale testing, performance evaluations, and many other use cases. Since AWS is not a charity, however, we need to manage costs tightly. In order to do this, we tag all AWS resources with an Owner tag (either by hand, or via our automated deployment tool).

To consume this tag, we have a cron job that runs daily and emails users who have active resources in AWS to remind them to shut down what they no longer require.

The subject line of the email reads “*\[AWS\] Your current burn rate is $725.91/month!*”. The body of the email contains a table with a more detailed cost breakdown. In addition, there is also a rollup email that goes out to the entire development team.

### Summary

EC2 tags are extremely useful tools to track state, organize resources and store relationships between resources like instances and EBS volumes. There are a myriad more ways to use them. I hope these tips have been helpful.

 

### Article Tags

- [AWS](https://www.sumologic.com/blog/aws)

Sumo Logic

[](https://www.sumologic.com/feed "RSS Feed")[](https://twitter.com/intent/tweet?text=Pragmatic%20AWS%3A%204%20Ideas%20for%20Using%20EC2%20Tags&url=https%3A%2F%2Fwww.sumologic.com%2Fblog%2Faws-4-cool-ideas-for-using-of-ec2-tags "X")[](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.sumologic.com%2Fblog%2Faws-4-cool-ideas-for-using-of-ec2-tags "Facebook")[](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.sumologic.com%2Fblog%2Faws-4-cool-ideas-for-using-of-ec2-tags "Linkedin")

[Previous blog

Sumo on Sumo, Part 1: Collection](https://www.sumologic.com/blog/sumo-on-sumo-part-1-collection)[Next blog

Sumo Logic Jump Start (Part 2 of 2)](https://www.sumologic.com/blog/sumo-logic-jump-start-part-2-of-2)

People who read this also enjoyed

[  

Eight best practices for a successful cloud migration strategy

June 16, 2026

 

 ](https://www.sumologic.com/blog/best-practices-for-cloud-migration-strategy)[  

OCSF for Security Hub: Sumo Logic and AWS speaking the same language

September 30, 2025

 

 ](https://www.sumologic.com/blog/sumo-logic-aws-ocsf-security-hub)[  

Enhance your cloud security visibility with the updated AWS CloudTrail app

July 16, 2025

 

 ](https://www.sumologic.com/blog/enhance-your-cloud-security-visibility-with-updated-aws-cloudtrail-app)[  

How to create and monitor an AWS Lambda function in Java 11

April 15, 2025

 

 ](https://www.sumologic.com/blog/how-to-write-aws-lambda-function-in-java8)

[AI Instructions](https://www.sumologic.com/ai-instructions.md)
