-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
48 lines (31 loc) · 1.05 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Tables
======
A table is a line oriented set of strings of the following form:
* One line of headers delimited by `delimiter` (a `tab` by default).
* Zero or more lines of data delimited by `delimiter`.
Should we have an optional typing mechanism in the header? How much benefit does that add?
Examples
========
# how many instances are in the VPC 'vpc-00028f24'?
get ec2_instances | filter VpcId == vpc-00028f24 | agg count
# how many m4.larges are in the VPC 'vpc-00028f24'?
get ec2_instances | filter VpcId == vpc-00028f24 and InstanceType == m4.large | agg count
# how many of each instance type are in the VPC 'vpc-41928f24'?
get ec2_instances | filter VpcId == vpc-00028f24 | group_by InstanceType | agg count
Functions
=========
get <table>
This command pulls down informaton on the specified table, according to a configuration.
The configuration includes options for:
* accessing one more accounts
* caching TTL
select <cols>
map <cols> <function>
filter <cols> <function>
group_by <
cache
join
rename
pprint
cols = names or indexes
json_to_tabular