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

vantage_virtual_tag_config (Resource)

Manages a Virtual Tag Config.

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

  • backfill_until (String) The earliest month VirtualTagConfig should be backfilled to.
  • key (String) The key of the VirtualTagConfig.
  • overridable (Boolean) Whether the VirtualTagConfig can override a provider-supplied tag on a matching Cost.

Optional

Read-Only

  • created_by_token (String) The token of the User who created the VirtualTagConfig.
  • id (String) The id of the VirtualTagConfig.
  • token (String) The token of the VirtualTagConfig.

Nested Schema for values

Required:
  • filter (String) The filter VQL for the Value.
Optional:
  • business_metric_token (String) The token of the associated BusinessMetric.
  • cost_metric (Attributes) (see below for nested schema)
  • name (String) The name of the Value.

Nested Schema for values.cost_metric

Optional:

Nested Schema for values.cost_metric.aggregation

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