Tag Templates¶
Tag Templates are a powerful feature in TagOps that allow you to define reusable sets of tags. Instead of manually defining the same tags for every rule, you can create a template and reference it across multiple rules, ensuring consistency and simplifying management.
Overview¶
A Tag Template acts as a blueprint for a group of tags. It can contain:
- Constant Tags: Fixed key-value pairs (e.g.,
CostCenter = 10001,Environment = Production). - Dynamic Tags: Tags that are populated with values determined at runtime (e.g.,
CreatedBy,CreationDate).
Creating Tag Templates¶
When configuring TagOps, you can define templates in the Templates section:
- Name: Give the template a descriptive name (e.g.,
EngineeringCostTags,ComplianceStandard). - Constant Tags: Add static tags that should always be applied.
- General/Dynamic Tags: Select dynamic attributes to capture.
Using Templates in Rules¶
Once a template is created, you can use it in any Tagging Rule:
- Select Action Type:
Template. - Template Name: Choose your pre-defined template.
When the rule triggers, all tags defined in the template are applied to the matching resources.
Benefits¶
- Standardization: Define your standard tags (like
Department,Owner,Project) once and apply them everywhere. - Maintainability: Update a template in one place, and the change propagates to all rules using that template.
- Efficiency: Reduces repetitive configuration when setting up multiple rules for different resource types or conditions.