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
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
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>"
ec2 --region us-west-2 ls my-hostname