Amazon web service allows the customer to assign metadata to their AWS resources in the form of tags. Each tag is a simple label consisting of a customer-defined key and an optional value that can make it easier to manage filter resources by purpose, owner, environment. AWS Tags and Uses is various AWS services.
A tag is a label that you assign to an AWS resource. Each tag consists of a key and an option value, both of which you define. Tags enable you to categorize your AWS resources in different ways, for example, by purpose, owner, or environment.
How tagging works:
We have assigned two tags to each of our instances -one tag with the key “Owner” and another with the key “Stack”. Each tag also has an associated value. We recommended that your device a set of tag keys that meets your needs for each resource type. Tags don’t have any semantics meaning to amazon EC2 and are interpreted strictly as a string of characters. Also, tags are not automatically assigned to your resources. you can edit tag keys and values, and you can remove tags from a resource at any time. You can set the value of a tag to an empty string, but you can’t set the value of a tag to null. if you add the tag that has the same key as an existing tag on that resources, the new value overwrites the old value.
Working with tags using the console:
We can see which tags are in use across all of your Amazon EC2 resources in the same region. You can view tags by resources and by resources type, and you can also view how many items of each resource type are associated with a specified tag
- Displaying tags
- Adding and deleting tags on individual and group resources
- Adding a tag when you launch an instance
- Filtering a list of resources by tag
When we select a resources specific page in the amazon ec2, it displays a list of those resources. Displaying tags for all resources, we can display tags across all resources by selecting tags from the navigation pane in the Amazon EC2 console. AWS Tags and Uses is various AWS services.
The following image shows the tags pane which lists all tags in use resources type.
Adding and deleting tags on an individual and group of resources:
To add a tag from individual and group resources.
- Open the Amazon EC2 console.
- From the navigation bar, select the region that meets your needs. This choice is important because some Amazon Ec2 resources can be shared between regions,
- In the navigation pane, select a resource type and choose tags.
- Select the resources from the resources list and choose tags, add/edit tags.
- Choose to add/edit tags, select the delete icon for the tag and checkbox next to each resource to which file to add tags, and then choose to save.
Delete a Tag from an individual resource.
- Open the Amazon EC2 console.
- In the navigation pane, choose a resource type.
- Select the resource from the resource list and choose tags.
- Choose to add/edit tags, select the delete icon for the, and choose to save.
Delete a tag from a group of resources.
- In the navigation pane, choose tags, manage tags.
- To view the tags in use, select the show /hide columns gear-shared icon, and in the show /hide columns dialog box, select the tab key to view and choose close.
- For the filter, select the type of resources from which to remove tags.
- In the resources list, select the checkbox next to each resource from which to remove tags.
- Under remove tag, for the key, type the tags name and choose to remove the tag.
Adding a tag when you launch an instance:
AWS Tags and Uses is various AWS services.
To add a tag using the launch wizard.
Form the navigation bar, select the region for the instance. This choice is important because some amazon ec2 resources can be shared between regions, while others can’t. select the region that meets your needs.
Choose launch instance.
The choose an amazon machine image page displays a list of basic Configuration called amazon machine images (AMI). Select the AMI to use and choose to select.
On the Configure instance details page, configure the instance settings s necessary, and then choose Next: add storage.
On the add storage page, specify additional storage volumes for your instances. Choose next: add tags when done.
On the add tags page, specify tags for the instances, the volumes, or both. Choose add another tag to add more than one tag to your instance. Choose Next: Configure the security group when you are done.
Review our settings. When our satisfied with your selections. Choose launch. Select an existing key pair or create a new one, select the acknowledgment checkbox, and then choose launch instances.
Filtering a list of resources by tag:
To filter a list of resources by tag
Display a column for the tag as follows:
- Select a resource.
- In the details pane, choose tags.
- Locate the tag in the list and choose the show column.
Choose the filter icon in the top right corner of the column for the tag to display the filter list.
Select the tag values, and then choose apply filter to filter the results list.
AWS Spending that can’t Be tagged
Only actual resources usage can be tagged
There’s a whole bunch of spending in your monthly AWS bill which isn’t classified as direct resource usage and therefore can’t be tagged.
Monthly recurring reserved instances fees. At the begging of each month, AWS applies 720 hours of pre-pay for each partial or no upfront reserved instances.
Sign up free for reserved instances. For all upfront and partial upfront reservations. you’ll pay a one-off signup fee.
AWS support fees. For regular business support or enterprise support.
Tax: in Australia, for example, you’ll see GST as an item that can’t be tagged.
Actual resources that can’t be tagged
Here is a partial list of items that cannot be tagged:
- CloudWatch MetricMonitorUsage
- EBS snapshots- although these can be tagged, when AWS reports on them spending is collapsed to account /region with no resource id or tags mage available.
Things that CAN be tagged
The good news is that very much the lion’s share of AWS resources can be tagged, and you should do your best to tag these.
- EC2, RDS, and redshifts instances
- S3 buckets, including storage, and request costs
- Data transfer will inherit the tags of its resources source
- Additional EBS volumes
- RDS storage
AWS Tags and Uses is various AWS services. AWS resource tags can be used for a wide variety of purposes, from implementing a cost allocation process to supporting automation or authorizing access to AWS resources. implementing a tagging strategy can be challenging for some organizations, due to the number of stakeholder group involved and considering such as data sourcing and tag governance.