Get servers information from EC2 API

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 !

Author:

There is no additional info about this author.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


7 − five =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>