You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+87-6
Original file line number
Diff line number
Diff line change
@@ -14,16 +14,98 @@ Lists all resources in a AWS account.
14
14
15
15
* Runs a single operation
16
16
17
+
* CLI Support
18
+
19
+
## Overview
20
+
21
+
AWSRetriever scans sets of predefined `AWS` APIs, saved in "profile" files.
22
+
23
+
Profiles are `json` based files, holding a (potentially) very long list of operations to run. AWSRetriever is shipped with a `default.profile.js`, that holds a generic wide-variety of calls.
24
+
25
+
The profile is scanned when choosing "Full Scan" from the side-bar menu, or using the command-line parameter `-p` (combined with `-r`)
26
+
27
+
Profiles can be saved & loaded. The default profile loaded is defined in the configuration file.
28
+
29
+
A typical use-case is to define and test profiles for various AWS resources views and then use the CLI to periodically retrieve the items from AWS.
30
+
31
+
### Command-line interface
32
+
33
+
To export all items provided in my `ec2.profile.js`, and save them in `object.json`, use the following switches:
The resulting `myobjects.json` file, holds a JSON array with the following structure:
62
+
```json
63
+
[
64
+
{ "Type" : "InternetGateway", // the type of the object listed
65
+
"Service" : "EC2", // the service it was retrieved from
66
+
"Region" : "ap-northeast-2", // the region
67
+
"Source" : { //the object itself, will change according to the object
68
+
"Attachments": [
69
+
{
70
+
"State": {
71
+
"Value": "available"
72
+
},
73
+
"VpcId": "vpc-e2e9f18a"
74
+
}
75
+
],
76
+
"InternetGatewayId": "igw-0562ad6d",
77
+
"OwnerId": "000000000000",
78
+
"Tags": []
79
+
}}
80
+
,
81
+
.
82
+
.
83
+
.
84
+
```
85
+
86
+
### Profile Record
87
+
88
+
Each profile record holds:
89
+
```json
90
+
{
91
+
"ServiceName": "EC2", // AWS service to execute
92
+
"Name": "DescribeInternetGateways", // Specific API to execute
93
+
"Regions": "ap-northeast-1 ap-northeast-2 ap-south-1 ap-southeast-1 ap-southeast-2 ca-central-1 eu-central-1 eu-north-1 eu-west-1 eu-west-2 eu-west-3 sa-east-1 us-east-1 us-east-2 us-west-1 us-west-2", // a list of regions to call
94
+
"Enabled": true, // if false, this API is skipped
95
+
"PageSize": 18// if this API supports paging, this value will be the page size for each request.
96
+
},
97
+
```
98
+
17
99
## Download & Run
18
100
19
101
Download [the latest](https://github.com/dtylman/AWSRetriever/releases/) for Windows or Linux.
0 commit comments