#
Resource Tagging
Tagging resources is critical for tracking and analyzing our AWS costs. All required tag keys listed below are now configured as cost allocation tags in AWS, which means they directly enable cost reporting and analysis in AWS Cost Explorer. Proper tagging allows us to break down spending by application, team, owner, and specific resource, making it possible to identify cost trends, optimize spending, and allocate costs accurately across teams. For resources managed through Terraform, automated methods should be used to inject tags into all resources.
#
Required Tags
As part of our cost analysis, we have a set of required tags that need to be added to new and existing resources. These tags are configured as cost allocation tags in AWS.
For example, the following set of tags have been added to the cbioportal redis nodegroup in AWS EKS.
#
Resource-Name Tag Guidelines
The resource-name tag value should match the actual name of the resource in AWS:
#
Resource Scope
There are a lot of AWS resources that we utilize. However, it is not possible nor practical to tag all those resources. After careful usage analysis, we decided that it's better to require tags for those resources that cost us the most. Therefore, when tagging new and existing resources, make sure the following services and resources are tagged at the very least.