Tags
💡 Definition
Tags are metadata (labels) that you assign to AWS resources. Each tag consists of a key and an optional value, both of which you define.
🔑 Key Concepts
- Metadata: Information about the resource, not the resource itself.
- Key-Value Pair: e.g., Key=
Environment, Value=Production. - Organization: The primary way to organize resources in AWS.
- Not Unique: Many resources can share the same tag.
⚙️ How it Works
You add tags when you create a resource or later via the console, AWS CLF-C02/docs/cli, or AWS Tag Editor. You can then filter resources by these tags in various services.
🎯 Use Cases
- Cost Allocation: Tracking spend by Cost Center, Project, or Team in Cost Explorer.
- Automation: Identifying resources to back up ("Backup=True") or stop at night.
- Access Control: Using IAM policies to allow access only to resources with specific tags ("Department=HR").
- Resource Grouping: Creating AWS Resource Groups.
💰 Pricing Model
- Free: Tagging itself is free.
📝 Exam Tips (CLF-C02)
- Critical for Cost Allocation (Cost Allocation Tags).
- Case-sensitive.
- Up to 50 tags per resource.
- Used for organizing, tracking, and securing resources.
See Also: * AWS Resource Groups * AWS Tag Editor * Cost Explorer