Skip to main content

Assignment Rules

Summary​

Assignment Rules automatically map your cloud resources (VMs, databases, storage buckets, Kubernetes workloads, etc.) into Cost Pools based on rules you define.

Instead of manually categorizing thousands of resources, you write conditions once—and Costimizer routes matching resources automatically as new infrastructure spins up.

Menu location: Chargeback → Assignment Rule
Required role: Organization Manager (to create, edit, reorder, or delete rules)

Key rules to know​

  1. One resource → One Cost Pool: Every resource belongs to at most one Cost Pool.
  2. Highest priority wins: Rules are evaluated from highest priority to lowest priority. The first matching rule wins—lower-priority rules that also match the same resource do not apply.
  3. Targets Cost Pools, not Cost Owners directly: Assignment Rules always send matching resources to a Cost Pool (Direct or Shared):
    • If the target is a Direct Cost Pool, 100% of that resource's cost goes straight to the pool's linked Cost Owner.
    • If the target is a Shared Cost Pool, the resource's cost is collected centrally and later split by an Allocation Rule.

Supported condition fields​

When building an Assignment Rule, you can combine multiple conditions using AND (all conditions must match) or OR (any condition can match):

Condition fieldAvailable operatorsExample
Name/Idis, contains, starts with, ends withResource name starts with prod-checkout-
Tagis (Key & Value), exists (Key only), starts with (Key & Value)Tag team is payments
Sourceis (select connected cloud data source)Source is AWS Production
Cloud typeis (AWS, Azure, GCP, OCI, etc.)Cloud type is Oracle Cloud
Resource typeis (VM, Volume, Bucket, etc.)Resource type is Instance
Regionis (cloud region)Region is us-east-1
Serviceis (cloud service name)Service is AmazonEC2
K8s namespace / node / serviceisK8s namespace is checkout-prod

Create an Assignment Rule​

  1. Go to Chargeback → Assignment Rule and click Add (or click Add Assignment Rule from a Cost Pool or Unallocated Cost item).
  2. Enter a Rule Name (required, up to 25 characters) — use a clear name so your audit trail stays easy to read (e.g., Prod Checkout Tag).
  3. Build your Conditions:
    • Choose AND or OR conjunction logic.
    • Select the Field, Operator, and Value (or Key/Value for tags).
    • Click + Add Condition to add more criteria.
  4. Select Assign to Cost Pool:
    • Search and pick one Cost Pool from the list. Each pool displays whether it is Direct or Shared and shows its linked Owner.
  5. Set the Priority:
    • Higher priority rules are evaluated first (first match wins).
    • Review the Match preview card to see which resources match your rule before saving.
  6. Choose how to save:
    • Save Rule (or Create) — Saves the rule as an inactive draft (inactive) without applying it yet.
    • Save & Apply (or Create & Apply) — Saves the rule as active so it takes effect immediately and updates resource assignments.
Rule conflict warnings

If your new rule overlaps with a higher-priority rule that already claims matching resources, Costimizer warns you before saving. You can adjust the priority or conditions, or choose Force Save / Force Apply if you intentionally want to override or keep both rules.

Managing Assignment Rules & Preview Impact​

On the Chargeback → Assignment Rule page, you can:

  • Filter by pool type: Switch between All, Direct, and Shared tabs.

  • Inspect coverage: See the Condition, Assign To pool badge (Direct or Shared), Cost Coverage ($ / % of pooled cost), Status, and Applied for resource count and last-applied timestamp.

  • Reorder priority: Promote or demote rule priorities directly from the table actions.

  • Re-apply ruleset: Click Re-apply ruleset to re-evaluate existing resources against your current active rules.

  • Download: Export your ruleset as CSV or JSON.

  • Recent Changes vs. Track Changes (Resource Journey):

    • Use the Recent changes card at the top of the page as an audit log to review the latest rule edits, pool updates, and assignment runs (who changed what and when).
    • Click Track Changes ↗ in the table toolbar to open the Preview Impact resource journey (/chargeback/assignment-rules/track-changes). Select any resource on the left to trace its live attribution path on the right:
      1. Winning Assignment Rule (plus any lower-priority competing rules that were overridden)
      2. Cost Pool (Direct or Shared)
      3. Final Cost Owner(s) (percentage progress bar and final dollar amount)

    See the dedicated Track Changes (Resource Journey) guide for examples.