- Notifications
You must be signed in to change notification settings - Fork22
Lists all resources in a AWS account
License
dtylman/AWSRetriever
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
AWSRetriever
Lists all resources in a AWS account.
Supports over 390 APIs from over 70 services, all regions
Objects saved in JSON format
Define and save profiles for specific service queries
Runs a single operation
CLI Support
AWSRetriever scans sets of predefinedAWS
APIs, saved in "profile" files.
Profiles arejson
based files, holding a (potentially) very long list of operations to run. AWSRetriever is shipped with adefault.profile.js
, that holds a generic wide-variety of calls.
The profile is scanned when choosing "Full Scan" from the side-bar menu, or using the command-line parameter-p
(combined with-r
)
Profiles can be saved & loaded. The default profile loaded is defined in the configuration file.
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.
To export all items provided in myec2.profile.js
, and save them inobject.json
, use the following switches:
>AWSRetriever.exe-r-pec2.profile.js-oobjects.jsonAWSRetrieverUsingprofile:'ec2.profile.js'Writingto'objects.json'Queueingfrom'default'profile...1825operationsqueued.Scanning...
To export all items tomyobjects.json
using the default profile and settings:
>AWSRetriever.exe-r-omyobjects.jsonAWSRetrieverUsingprofile:'default.profile.js'Writingto'myobjects.json'Queueingfrom'default'profile...1825operationsqueued.Scanning...EC2DescribeInternetGatewaysap-northeast-1:1itemsretrievedEC2DescribeInternetGatewaysap-south-1:1itemsretrievedEC2DescribeInternetGatewaysap-northeast-2:1itemsretrievedEC2DescribeInternetGatewaysca-central-1:1itemsretrieved...
The resultingmyobjects.json
file, holds a JSON array with the following structure:
[{// the type of the object listed:"Type":"InternetGateway",// the service it was retrieved from:"Service":"EC2",// the region:"Region":"ap-northeast-2",//the object itself, will change according to the object:"Source":{"Attachments":[{"State":{"Value":"available"},"VpcId":"vpc-e2e9f18a"}],"InternetGatewayId":"igw-0562ad6d","OwnerId":"000000000000","Tags":[]}},{// more objects...}]
Each profile record holds:
{// AWS service to execute"ServiceName":"EC2",// Specific API to execute:"Name":"DescribeInternetGateways",// A list of regions to call:"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",// if false, this API is skipped"Enabled":true,// if this API supports paging, this value will be the page size for each request."PageSize":18}
Downloadthe latest for Windows or Linux.
- Requires
.NET
- Create a folder
AWSRetriever
- Unzip to folder.
- Run
AWSRetriever.exe
Make sure mono is installed:
sudo apt-get install mono-runtime
mkdir awsretrivercd awsretriverunzip path_to_downloaded_awsretriver.zip mono AWSRetriver.exe
About
Lists all resources in a AWS account