54_1 ‐ OCI Tagging Concepts and Implementation - SanjeevOCI/Ocidocs GitHub Wiki
OCI Tagging Concepts and Implementation
This guide explains how to create and use tags in Oracle Cloud Infrastructure (OCI) to better manage and organize resources. Includes steps for creating tag namespaces, tag keys, and recommended practices.
1. Navigate to Tag Namespaces
- Open the OCI Console.
- Go to Governance & Administration → Tag Namespaces.
- Select your compartment and click Create Tag Namespace.
2. Create a Tag Namespace
- Provide a name, description, and compartment.
- Click Create Tag Namespace.
3. Add a Tag Key Definition
- Open the created namespace.
- Click Create Tag Key Definition.
- Fill in:
- Tag Key (e.g., Environment)
- Description
- Tag Value Type (Free-form, List of Values, Static)
4. Choose Tag Value Options
- Free-form: Any value can be entered.
- List of Values: Predefined list of valid values.
- Static: Fixed value.
Tip: Prefer list of values to enforce consistency; use underscores for static values.
5. Review and Create
Review your selections and click Create.
6. Applying Tags to Resources
- Navigate to a resource (e.g., Compute Instance, VCN).
- Under Tags, select the namespace and key, and choose a value.
7. Managing Tags
- Edit or delete tag key definitions as needed.
- Monitor usage through Governance reports.
8. Practical Guidelines
- Use list of values wherever possible for uniformity.
- For static values, prefer underscores over spaces.
- Create meaningful tag names that reflect your organizational policies.
9. Tagging Across Compartments and Resources
Tags can be used across various compartments and resources to maintain cost visibility, ownership, and lifecycle management.