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 withprovider = 'aws', followed by additional filters.
With these operators and keywords, you can construct complex filter conditions in VQL.
Syntax
VQL resembles theWHERE clause of a SQL query. Start every expression with the AWS provider condition:
OR queries, repeat the provider condition in every branch:
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 inus-east-1.
Financial Commitments by Tags
Filter based on a specific tag calledbusiness-metric and a list of provided values.
Multiple Filters
Complex filter that shows combining two different statements usingOR with multiple criteria.
Real-World Examples
Find EC2 usage commitments for an account inus-east-1:
Troubleshooting
- Wrap string values in single quotes, not double quotes.
- Start every expression, including each
ORbranch, withfinancial_commitments.provider = 'aws'. - Use
financial_commitments.resource_tags->>'KEY'to filter a tag. - Keep complete conditions together when mixing
ANDandOR; use parentheses to separate each branch.