Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update VQL with more per-resource notes. #32

Merged
merged 1 commit into from
Sep 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions docs/vql.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,20 @@ costs.allocation = 0.5

### Per Resource Costs

Resource costs require both `provider` and `service` in addition to the `resource_id`

```sql
costs.provider = 'aws' AND costs.service = 'Amazon Relational Database Service' AND costs.resource_id = 'arn:aws:rds:us-east-1:123456789:db:primary-01'
```

```sql
costs.resource_id IN 'production', 'staging'
costs.provider = 'aws' AND costs.service = 'Amazon Relational Database Service' AND costs.resource_id IN ('arn:aws:rds:us-east-1:123456789:db:primary-01', 'arn:aws:rds:us-east-1:123456789:db:primary-02')
```

### Filtering by Tag

```sql
tags.name = 'environment' AND tags.value = 'production'
costs.provider = 'aws' AND tags.name = 'environment' AND tags.value = 'production'
```

### Get Marketplace Transactions
Expand Down