Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.vantage.sh/llms.txt

Use this file to discover all available pages before exploring further.

This page is auto-generated based on the official Terraform documentation.

Overview

Use this resource with the Vantage Terraform provider. For installation and authentication, see the Terraform provider quickstart. The schema below is generated directly from the provider source.

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:
  • filter (String) The VQL filter this collapsed tag key applies to.
  • 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)
  • date_ranges (Attributes List) Date ranges restricting when this value applies. Each range has optional start_date and end_date (inclusive, YYYY-MM-DD). (see below for nested schema)
  • label_transforms (Attributes List) Label transforms applied to business metric labels. (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.date_ranges

Optional:
  • end_date (String) Inclusive end date (YYYY-MM-DD), or null for unbounded.
  • start_date (String) Inclusive start date (YYYY-MM-DD), or null for unbounded.

Nested Schema for values.label_transforms

Required:
  • type (String) The label transform type. One of split or format.
Optional:
  • delimiter (String) Delimiter used by split transforms.
  • index (Number) Zero-based index used by split transforms.
  • template (String) Template used by format transforms.

Nested Schema for values.percentages

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