Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 717 Bytes

README.md

File metadata and controls

47 lines (33 loc) · 717 Bytes

ec2grep - EC2 cli tool

Install

Make sure you have pipx available in your system (brew install pipx if not).

pipx install ec2grep --index-url https://artifactory.frdstr.com/artifactory/api/pypi/pypi/simple

Usage

ls

Basic usage, find by name tag, external / internal IP, DNS

ec2 ls my-hostname

Using a custom formatter (name, ip, extended)

ec2 ls --format=name my-hostname
ssh

Open an SSH session

ec2 ssh my-hostname

With arguments

ec2 ssh my-hostname -- w

Parallel command

ec2 ssh --parallel -F ~/.ssh/gozer my-hostname -- "<command>"
custom region
ec2 --region us-west-2 ls my-hostname