Tagging AWS Organizations resources
A tag is a custom attribute label that you add to an AWS resource to make it easier to identify, organize, and search for resources. Each tag has two parts:
-
A tag key (for example,
CostCenter
,Environment
, orProject
). Tag keys are case sensitive. -
A tag value (for example,
111122223333
orProduction
). You can set the value of a tag to an empty string, but you can't set the value of a tag to null. Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.
You can use tags to categorize resources by purpose, owner, environment, or other
criteria. For more information, see AWS Tagging
Strategies
Use tag policies to help standardize your implementation of tags across the resources in your organization's accounts.
Currently, AWS Organizations supports the following tagging operations when you are logged in to the management account:
-
Tag operations are supported on the following taggable resources in an organization:
-
AWS accounts
-
Organizational units
-
The organization's root
-
Policies
-
You can add tags to taggable resources at the following times:
-
When you create the resource — Specify the tags in either the Organizations console, or use the
Tags
parameter with one of theCreate
API operations. This isn't applicable to the organization's root. -
After you create the resource — Use the Organizations console, or call the
TagResource
operation.
You can view the tags on any of the taggable resources in AWS Organizations by using
the console or
by calling the ListTagsForResource
operation.
You can remove tags from a resource by specifying the keys to remove by using the
console
or by calling the UntagResource
operation.
Using tags
Tags help you to organize your resources by enabling you to group them by things by whatever categories are useful to you. For example, you can assign a "Department" tag that tracks the owning department. You can assign an "Environment" tag to track whether a given resource is part of your alpha, beta, gamma, or production environments.
Adding tags
When signed in with permissions to your organization's management account, you can add tags to the resources in your organization.
Add a tag to a resource when you create it
To add tags to a resource when you create it, you need the following permissions:
-
Permission to create a resource of the specified type
-
organizations:TagResource
-
organizations:ListTagsForResource
(console only)
You can include tag keys and values that are attached to the following resources as you create them.
-
AWS account
-
Policy
The organization root is created when you initially create the organization, so you can only add tags to it as an existing resource.
To add a tag to an existing resource
You can also add new tags or update the values of tags attached to existing resources.
To add tags to resources in your organization, you need the following permissions:
-
organizations:TagResource
-
organizations:ListTagsForResource
(console only)
Viewing tags on resources in your organization
When signed in with permissions to your organization's management account, you can view tags on taggable resources in your organization.
To view tags on a resource in your organization
To view a resource's tags, you need the following permissions:
-
organizations:ListTagsForResource
Editing tag values
When signed in with permissions to your organization's management account, you can edit the tag values for tags that are attached to your taggable resources.
You can't change a tag key. You can delete the tag with the old key and then add a tag with the new key. For more information, see Deleting tags and Adding tags.
To edit a tag value for a tag on a resource in your organization (console)
To edit tag values on tags that are attached to your taggable resources, you need the following permissions:
-
organizations:ListTagsForResource
-
organizations:TagResource
-
organizations:ListTagsForResource
(console only)
Deleting tags
When signed in with permissions to your organization's management account, you can delete tags that are attached to taggable resources in your organization.
To delete a tag from a resource in your organization
To delete tags, you need the following permissions:
-
organizations:ListTagsForResource
(console only) -
organizations:UntagResource