Virtual Tags
Overview
Virtual Tags in OneLens empower you to assign cost allocation logic beyond native cloud provider tagging - whether you're on AWS, Azure, GCP, or OCI.. You can fill gaps where tags are missing, incorrectly applied, or entirely unsupported - so your financial reporting reflects your true business structure.
Whether you’re mapping untagged resources, allocating shared expenses, or grouping untaggable items like discounts and savings plans, Virtual Tags give you the flexibility to define cost your way.
What You Can Tag
You can use Virtual Tags to assign cost in the following scenarios:
Capture resources that should have been tagged but weren’t - due to human error, late tagging, or tag propagation issues.
Assign cost to resources that never had any tags applied.
Apply tags to services or line items that are not taggable through cloud-native methods.
Examples of untaggable services and line items:
Services
Data Transfer, RDS Backups
Line Items
Discounts, Credits, Savings Plans, Refunds, Reservations, Out-of-cycle Adjustments
How to Create a Virtual Tag
Follow the steps below to create your own Virtual Tags:
Go to Settings in the left sidebar.
Under Business Mapping, open Organization Cost Center.

Switch to the Virtual Tags tab.

Click Create Virtual Tag.

Enter a Key (name of the tag) and an optional Description. After that click Define Value at the bottom right.

Click Create Virtual Tag (bottom right).
The tag is now created.
Defining Values
When you create a Virtual Tag, you're essentially building your own rule-based cost mapping system. This lets you assign a value to specific resources - even if they have no native tags.
You do this by creating conditions that determine which resources get mapped to which tag value. Once the conditions are met, OneLens automatically maps the associated cost to that value - so you can track, report, and allocate cost in a way that aligns with how you view your business.
Use Case
For example:
If you run all S3 workloads for data analytics in the us-west-2 region, you can create a virtual tag value called Data Analytics - S3 and map it to:
Field:
Service→ Operator:Is→ Value:S3Field:
Region→ Operator:Is→ Value:us-west-2
All matching S3 charges will now be grouped under Data Analytics - S3 - even if they weren’t tagged that way in AWS.

You can add multiple conditions to create fine-tuned cost mappings.
How to Set Conditions
Step 1: Choose Field
Select the attribute you want to match your condition against. Each field represents a dimension of the resource or billing data.
Step 2: Choose Operator
Operators define how the field value should match the input you provide.
Step 3: Enter Value
Provide the value(s) you want OneLens to match. You can:
Choose one or more values for operators like
InorIs Not InEnter strings or substrings for operators like
ContainsandStarts With
You can continue adding more fields and conditions to refine how the tag applies.
Step 3: Allocating Shared Costs
Virtual Tags can also be used to allocate shared costs like support charges, data transfer, or common infrastructure across business units. ➡️ Learn more about Shared Cost Allocation
Note
Allocating cost is optional—you can choose to use virtual tags purely for grouping or visibility purposes without impacting cost allocation.
Value Status Guide
Each value inside a Virtual Tag passes through a lifecycle status to help you track its readiness.
Not Defined
You’ve created the value, but no resources are mapped yet.
Defined
Resources have been mapped to the value, and associated costs are identified.
Allocated
The value is used in your cost hierarchy and cost is allocated accordingly.
Managing Virtual Tags
All your created tags are listed in the Virtual Tags tab.
You can manage any tag using the menu on the right of each row:
Manage — Edit values, logic, or name.
Delete — Remove the tag if it's no longer needed

Last updated



