Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mefellows/aws-search

Simple AWS cross-account search tool, using Credulous
https://github.com/mefellows/aws-search

Last synced: about 2 months ago
JSON representation

Simple AWS cross-account search tool, using Credulous

Awesome Lists containing this project

README

        

# AWS Search
Simple AWS cross-account search tool, leveraging AWS [CLI Profiles](http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-multiple-profiles) and [Credulous](https://github.com/realestate-com-au/credulous).

## Installation

* Download [AWS Search](/mefellows/aws-search/releases) and put it on your `PATH`

## Usage

```
aws-search --id ami-5678bbb --action ami --region ap-southeast-2
aws-search --id i-1234aaaa --action instance --region ap-southeast-2
aws-search --id 54.34.3.1 --action public-ip --region ap-southeast-2.
aws-search --id myapp --action eb --region ap-southeast-2
aws-search --id prd-a-123ab --action eb-env --region ap-southeast-2
aws-search --id prd-b-123ab --action eb-resources --region ap-southeast-2
```

For verbose logging, simply add the `--verbose` flag.

### Credulous

If you want to use [Credulous](https://github.com/realestate-com-au/credulous, ensure it is installed (for Windows [variant](https://github.com/mefellows/credulous)), and source some creds.

You may then pass the `--credulous=true` flag to have it use Credulous profiles instead of the default AWS CLI Profiles.

## Unix philosophy

AWS Search is desgined to be combined with other tools, for example, it goes really well
with [jq](https://github.com/stedolan/jq) too:

```
./aws-search --id production-a-123aaa --action eb-resources --region ap-southeast-2 | jq .EnvironmentResources.Instances[0].Id
```

NOTE: `AWS_REGION` environment variable will be used if no `-r` option is present.