Skip to content
Locate the region and/or availability zone for a node process running on EC2
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

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)
})
Something went wrong with that request. Please try again.