Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Extensible Node.js library for the Amazon Web Services API (EC2, SimpleDB and Product Advertising API)
JavaScript
Branch: ses-secure
Pull request Compare This branch is 1 commit ahead, 166 commits behind livelycode:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
lib
test
.gitignore ignoring .DS_Store
LICENSE
README.md
package.json

README.md

Node-AWS for EC2 and Product Advertising

A simple Node.js library to communicate with the Amazon Web Services API.

It includes specific clients for the EC2 and Product Advertising API but is designed to be easily extendable.

Thanks to Richard Roger's contribution, the library now has support for SimpleDB, as well. Have a look at his tests for some examples.

All responses are parsed to JSON.

Some simple usage examples:

var aws = require("aws-lib");

ec2 = aws.createEC2Client(yourAccessKeyId, yourSecretAccessKey);

ec2.call("DescribeInstances", {}, function(result) {
  console.log(JSON.stringify(result));
})

Returns you something like: [...] {"item":{ "instanceId":"i-acb2d1db","imageId":"ami-03765c77", "instanceState": {"code":"80","name":"stopped"}, "privateDnsName":{},"dnsName":{}, "reason":"User initiated (2010-07-28 19:37:54 GMT)" [...]

or when using the Product Advertising API: prodAdv = aws.createProdAdvClient(yourAccessKeyId, yourSecretAccessKey, yourAssociateTag);

prodAdv.call("ItemSearch", {SearchIndex: "Books", Keywords: "Javascript"}, function(result) {
  console.log(JSON.stringify(result));
})

Will return you a long list of Books...

Something went wrong with that request. Please try again.