Simple AWS cross-account search tool, leveraging AWS CLI Profiles and Credulous.
- Download AWS Search and put it on your
PATH
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.
If you want to use [Credulous](https://github.com/realestate-com-au/credulous, ensure it is installed (for Windows variant), 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.
AWS Search is desgined to be combined with other tools, for example, it goes really well with 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.