Skip to main content
If you need help constructing a VQL query, navigate to the Financial Commitment Reports page and click New Report. From the top left, open the Filters menu. Create a filter and click the View as VQL button at the top of the Filters menu to see a filter’s VQL representation. You can copy this syntax to use within your API calls. You can also edit VQL directly and click Apply to update the filter.

Financial Commitment Reports VQL Schema

VQL for Financial Commitment Reports comprises one namespace, financial_commitments, which represents the available filters on Financial Commitment Reports in the Vantage console. To reference a filter, use the following syntax: namespace.field (e.g., financial_commitments.service). The following fields are available within the financial_commitments namespace.

Keywords

VQL includes a set of keywords to create complex filter conditions. These keywords function similar to their SQL equivalents. Note that each expression starts with provider = 'aws', followed by additional filters. With these operators and keywords, you can construct complex filter conditions in VQL.

Syntax

VQL resembles the WHERE clause of a SQL query. Start every expression with the AWS provider condition:
For OR queries, repeat the provider condition in every branch:
Use single quotes around string values.

VQL Examples

The following examples cover common use cases for VQL.

Financial Commitments by Service

Filter for multiple services.

Financial Commitments by Specific Account

Filter down to an individual account.

Financial Commitments by Specific Billing Account

Filter down to an individual billing account.

See Specific Commitment Types

Filter out certain commitment types to see everything else.

Financial Commitments by Commitment ARN

See the impact of specific financial commitments related to EC2 by ARNs.

Financial Commitments by Charge Type

See only usage-related commitments.

Financial Commitments by Category

All data transfer-related commitments.

Financial Commitments by Subcategory

Filter for Cloudfront and data transfer egress in APN2.

Financial Commitments by Instance Types

Filter from a list of different instance types.

Financial Commitments by Region

See all financial commitments in us-east-1.

Financial Commitments by Tags

Filter based on a specific tag called business-metric and a list of provided values.

Multiple Filters

Complex filter that shows combining two different statements using OR with multiple criteria.

Real-World Examples

Find EC2 usage commitments for an account in us-east-1:
Find production commitments that are not credits:

Troubleshooting

  • Wrap string values in single quotes, not double quotes.
  • Start every expression, including each OR branch, with financial_commitments.provider = 'aws'.
  • Use financial_commitments.resource_tags->>'KEY' to filter a tag.
  • Keep complete conditions together when mixing AND and OR; use parentheses to separate each branch.