There are cases when you need to get servers information from EC2 API, for an example get the list of server that started by a specific Auto-Scale group.
I have created a little tool that dig into EC2 API and gives you back filtered information, here’s the usage response:
Usage ./ec2-ctl.sh -a get_pub_dns|get_id|get_status|get_type|get_name|get_pub_ip|get_priv_ip [-t <tag_name> -v <value>] - filter based on tags [-f <filter_name> -v <value>] - filter based on filters [-m - filter for the local host [-c <path to certificate files> -k <path to private key>] - define access keys [-r <ec2_region>] - region selection [-h] - help
Download ec2-ctl
As always, Enjoy !
