ec2-instance-lister
v0.1.1
Published
List IP addresses of ec2 instances having a certain keyword in their name
Downloads
6
Readme
ec2-instance-lister
List IP addresses of ec2 instances having a certain keyword in their name.
#Installation:
npm install -g ec2-instance-lister
#Usage:
This module uses RC to manage its configuration, so you will have to type your AWS credentials into the .ec2-instance-listerrc
file.
Run:
ec2-instance-lister
options
--searchString | -s
Specify a search string to find in the instance tags
--account
Specify an account name for different credentials. The default credentials are named aws and they appear in the config file like so:
{
"aws": {
"accessKeyId": "blablabla",
"secretAccessKey": "shhhhhhhhh",
"region": "us-moon-1"
}
}
if you specify --account or add it in the config, e.g. ec2-instance-lister --account=foo
then credentials used will be under the account name key:
{
"aws": { ... },
"foo": {
"accessKeyId": "blablabla",
"secretAccessKey": "shhhhhhhhh",
"region": "us-moon-1"
}
}
--ipType
which ip of the server to return: private or public, defaults to 'public' when selecting public or private, instances that do not have a particular ip will not be listed