AWS Tags and Resource Groups Training Summary
Tags in AWS
- Definition: Tags are key-value pairs attached to AWS resources.
- Usage: Commonly used for resource grouping, automation, security, and cost allocation.
- Naming Convention: Free-form, but common tags include
Environment, Team, etc.
- Best Practice: It's better to have too many tags than too few.
Resource Groups
- Purpose: Allows grouping of AWS resources that share the same tags.
- Use Cases: Grouping applications, differentiating environments (e.g., prod vs. dev), and organizing resources by team.
- Scope: Regional service.
- Supported Services: EC2, S3, DynamoDB, Lambda, and more.
Tagging EC2 Instances Example
- Instance 1:
- Name: MyDevInstance
- Environment: dev
- Team: finance
- Instance 2:
- Name: MyProdInstance
- Environment: prod
- Team: finance
- Instance 3:
- Name: MyOtherDevInstance
- Environment: dev
- Team: operations
Creating Resource Groups
- Access: Through AWS Systems Manager.
- Process:
- Navigate to Resource Groups.
- Create a tag-based resource group.
- Select resources by specifying tags (e.g.,
Environment=dev).
- Preview and create the group.
Example Resource Groups Created
- Dev Group: Contains instances with
Environment=dev.