aws-locate

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

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 (errzone) {
  console.log(zone)
})
 
// to get the region 
require ('aws-locate').getRegion(function (errregion) {
  console.log(region)
})