ec2.describeInstances(function(err, result) {
if (err)
console.log(err);
var inst_id = '-';
for (var i = 0; i < result.Reservations.length; i++) {
var res = result.Reservations[i];
var instances = res.Instances;
for (var j = 0; j < instances.length; j++) {
var tagArr = instances[j].Tags[0];
console.log(tagArr);
});