Retrieving Instance Metadata.
var ec2meta = require('ec2-meta');
// load meta categories
ec2meta.load(function(err, categories) {
// console.log(categories);
});
// load instance-id
ec2meta.load('instance-id', function(err, value) {
// console.log(value);
});
ec2-meta is licensed under the MIT license.