I am using Node.js with browserify and I have setup AWS like this:
var AWS = require('aws-sdk');
AWS.config.region = 'us-west-2b';
This works fine. An object is returned when I am printing to console.
However, when I do:
var ec2 = new AWS.EC2();
console.log(ec2);
It is failing to find EC2. I get undefined is not a function.
EC2 doesn't seem to exist. All the documentations direct me in this manner.
Aucun commentaire:
Enregistrer un commentaire