Auto Service Mapping
Last updated
Last updated
Automated Service Mapping is a powerful feature in TemperStack that simplifies the process of mapping services to resources. Instead of manually mapping each service to individual resources, users can define a set of rules that automatically handle the mapping process. This feature significantly reduces the time and effort required for service management, especially in large-scale environments.
Key Benefits:
Reduces manual effort in service mapping
Ensures consistency in mapping across resources
Allows for dynamic and flexible mapping based on various criteria
Supports scalable service management in complex environments
The Automated Service Mapping interface presents a table with the following columns:
Mapping Type: Indicates the chosen mapping method (e.g., Name-based or Tag-based).
Mapping Condition: Displays the specific condition set for the mapping rule.
Mapped to Environment/Services: Shows the target Environment or Application Service for the mapping.
Override Mapping: Indicates whether the rule will override existing mappings.
Actions: Allows for reordering of rules to set priority. Rules higher in the list take precedence.
The interface is divided into two main sections:
Environment Mapping Rules: Lists rules that map resources to specific environments.
Service Mapping Rules: Contains rules for mapping resources to application services.
Log in to the TemperStack dashboard
Navigate to Admin > Manage Organisation
Click on "Org Service Mapping"
Click the "Add New" button on the right side of the interface
Select Mapping Type: - Name-based: Maps based on resource names - Tag-based: Maps based on resource tags
Define Mapping Condition: For Name-based mapping: - Select a match type:
starts_with
ends_with
exact_match
contains
Enter the string to match
Example:
Match Type: starts_with String: new This rule will apply to all resources whose names start with "new".
Set Mapping Target: Choose to map to either: - Environment - Application Service
Configure Override Behaviour: - Check the "Override" box if you want the rule to change existing mappings - Leave unchecked to apply only to unmapped resources
Save the Rule: Click the "Save" button to activate the new mapping rule
Rules are applied in the order they appear in the list. To change the priority:
Locate the drag icon (usually represented by hamburger icon) on each rule card
Click and hold the icon
Drag the rule to its new position in the list
Release to drop the rule in its new place
Click "Save" to confirm the new order
Important Notes:
The rule at the top of the list has the highest priority
Always save changes after reordering to ensure the new priority is applied
Scenario 1: Development Environment Mapping Mapping Type: Name-based Condition: starts_with "dev-" Map to: Environment (Development) Override: Yes
This rule automatically maps all resources with names starting with "dev-" to the Development environment, overriding any existing mappings.
Scenario 2: Production Service Mapping Mapping Type: Tag-based Condition: contains key"servicename" and value “prod” Map to: Application Service (Production-App) Override: No
This rule maps resources that have tag key as ‘servicename’ and value as ‘prod’ to the Production-App service, but only if they're not already mapped.