ec2-search 0.3.2

search AWS ec2 easily
ec2-search-0.3.2 is not a library.
Visit the last successful build: ec2-search-0.14.1

ec2-search Test

Search EC2 instance easily

Installation

Cargo Install

With Rust's package manager cargo, you can install via:

$ cargo install ec2-search

If you install the latest master branch commit

$ cargo install --git https://github.com/mocyuto/ec2-search --branch master

Homebrew

macOS or Linux

$ brew tap mocyuto/ec2-search
$ brew install ec2-search

Usage

$ ec2s help

AWS credentials

ec2-search needs aws credentials, so you need to set credentials. You can use Environment value or "~/.aws/credentials".

For more information, see AWS Credentials

Instance-ids

Display instance ids

## like search
$ ec2s ids -q "api"
i-012345678 : test-api1
i-023456789 : test-api2
counts: 2

## search exact query match
$ ec2s ids --exq=front-api

## search with ids
$ ec2s ids --ids i-abcde12345

Instance-private-ips

Display instance private IPs.

$ ec2s ips -q "api"
["10.0.0.1"] : test-api1
["10.0.0.2"] : test-api2
counts: 2