From the course: AWS: Cost and Performance Optimization

AWS-generated cost allocation tags - Amazon Web Services (AWS) Tutorial

From the course: AWS: Cost and Performance Optimization

Start my 1-month free trial

AWS-generated cost allocation tags

- [Instructor] Cost allocation tags can be of one of two types: AWS-generated or user-generated. In this video, we'll focus on AWS-generated cost allocation tags. AWS defines and applies the aws:createdBy tag to supported AWS resources for cost allocation purposes. Once enabled, AWS will apply the tag to supported resources that you create after activating the AWS-generated tag. The format of the aws:createdBy tag looks like this: Key = aws:createdBy and Value = account-type:account-ID or access-key:user-name or role session name. Valid values for account-type include Root, IAMUser, AssumedRole, and FederatedUser. Account-ID is the account number of the root account or the federated user who created the resource. Access key tracks the IAM access key. Here's an example of an AWS-generated tag. The tag key is aws:createdBy and the tag value includes Root, which is the account type, followed by the account ID. Here's another example. The tag key is the same, aws:createdBy, the tag value includes IAMUser, which is the account type, followed by the access key, followed by the username. AWS applies the createdBy tag to the following services: AWS CloudFormation, AWS Data Pipeline, Amazon EC2, Amazon ElastiCache, AWS Elastic Beanstalk, Elastic Load Balancing, Amazon Kinesis, Amazon RDS or Relational Database Service, Amazon Redshift, Amazon Route53, Amazon S3, Amazon S3 Glacier, and AWS Storage Gateway. For a full list of supported resource types and events, please refer to the AWS documentation. To activate the AWS-generated tags, log into your AWS Management Console using your management account. Click your display name in the upper right corner and then click My Billing Dashboard. On the left navigation pane, click Cost Allocation Tags. Under the section called AWS-generated cost allocation tags, select the aws:createdBy and then click Activate. Click Activate to confirm. It can take up to 24 hours for tags to activate. Bear in mind that the createdBy tag is only available in the billing and cost management console and will not appear anywhere else in the AWS console, including the tag editor. Finally, there are a few essential things to know before you start using AWS-generated tags. Only a management account can activate AWS-generated tags. Doing so will activate it for all member accounts. You cannot update, edit, or delete AWS-generated tags. AWS will tag only those resources that you created after activating the AWS-generated tag. And AWS-generated tags use the reserve prefix aws colon.

Contents