Skip to main content
This page is auto-generated based on the official Terraform documentation.

vantage_virtual_tag_config (Resource)

Example Usage

data "vantage_virtual_tag_configs" "demo" {}
resource "vantage_virtual_tag_config" "demo_virtual_tag_config" {
  key            = "Demo Tag"
  backfill_until = "2024-01-01"
  overridable    = true
  values = [
    {
      name   = "Demo Value 0"
      filter = "(costs.provider = 'aws' AND costs.region = 'us-east-1') OR (costs.provider = 'gcp' AND costs.region = 'us-central1')"
    },
    {
      filter = "(costs.provider = 'aws' AND costs.service = 'AwsApiGateway')"
      cost_metric = {
        aggregation = {
          tag = "environment"
        }
        filter = "(costs.provider = 'aws' AND costs.service = 'AmazonECS')"
      }
    },
    # {
    #   filter = "(costs.provider = 'aws' AND costs.service = 'AmazonECS')"
    #   business_metric_token = ""
    # }
  ]
}

Schema

Required

  • key (String) The key of the VirtualTagConfig.
  • overridable (Boolean) Whether the VirtualTagConfig can override a provider-supplied tag on a matching Cost.

Optional

  • backfill_until (String) The earliest month the VirtualTagConfig should be backfilled to.
  • collapsed_tag_keys (Attributes List) Tag keys to collapse values for. (see below for nested schema)
  • values (Attributes List) Values for the VirtualTagConfig, with match precedence determined by order in the list. (see below for nested schema)

Read-Only

  • created_by_token (String) The token of the Creator of the VirtualTagConfig.
  • id (String) The id of the VirtualTagConfig.
  • token (String) The token of the VirtualTagConfig.

Nested Schema for collapsed_tag_keys

Required:
  • key (String) The tag key to collapse values for.
Optional:
  • providers (List of String) The providers this collapsed tag key applies to. Defaults to all providers.

Nested Schema for values

Required: Optional:
  • business_metric_token (String) The token of an associated business metric.
  • cost_metric (Attributes) (see below for nested schema)
  • name (String) The name of the value.
  • percentages (Attributes List) Labeled percentage allocations for matching costs. (see below for nested schema)

Nested Schema for values.cost_metric

Optional:

Nested Schema for values.cost_metric.aggregation

Optional:
  • tag (String) The tag to aggregate on.

Nested Schema for values.percentages

Required:
  • pct (Number)
  • value (String) The tag value associated with a percentage of matched costs.