Created
October 8, 2015 22:49
-
-
Save toshihirock/9c4bd414350589d21441 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load the SDK and UUID | |
var AWS = require('aws-sdk'); | |
AWS.config.update({region: 'ap-northeast-1'}) | |
// Create an S3 client | |
//var s3 = new AWS.S3(); | |
var ec2 = new AWS.EC2(); | |
ec2.describeInstances({}, function(err, data) { | |
if (err) console.log(err, err.stack); | |
else { | |
console.log(data); | |
data.Reservations.forEach(function(reservation) { | |
console.log(reservation); | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment