aws-locate

Locate the region and/or availability zone for a node process running on EC2

npm install aws-locate
6 downloads in the last week
15 downloads in the last month

aws-locate

Locate the region and/or availability zone for a node process running on EC2


// to get the availability zone:
require('aws-locate').getAvailabilityZone(function (err, zone) {
  console.log(zone)
})

// to get the region
require ('aws-locate').getRegion(function (err, region) {
  console.log(region)
})
npm loves you