- Sponsored by: nearForm
- Node: 4.x, 6.x
Return the private ip of a list of EC2 instanstes using aws-sdk
npm install aws-get-ip
const Finder = require('aws-get-ip')
const getIp = new Finder({
region: 'eu-central-1'
})
getIp.byTags({tag: 'value'}, function (err, ips) {
console.log(ips)
})
The constructor accepts the same options of aws-sdk.
You should pass in the aws region and credentials (unless using a IAM role)
List all the private ips of running instances with the specified tags
Copyright (c) 2013 - 2016, Paolo Chiodi and other contributors. Licensed under MIT.