aws-api

A client interface to various AWS services.

node-aws

node-aws is an easy-to-use AWS client for node.

var aws = require('node-aws').createClient(
  'yourAccessKeyId',
  'yourSecretAccessKey',
  // You can optionally provide a hash of service endpoints, 
  // but they each have reasonable defaults (typically US-East-1). 
  {
    'sdb': 'sdb.eu-west-1.amazonaws.com',
  }
);
 
// All method request return a promise that will be fulfilled 
// once the response is received and parsed. 
aws.sdb.putAttributes(
  {
    domainName: "test",
    itemName: "item1",
    attributes: [
      {
        name: 'foo',
        value: 'bar',
      },
    ],
  },
  // You can optionally override the default endpoint on a 
  // per-request basis as well. 
  'sdb.ap-southeast-1.amazonaws.com'
).onSuccess(function() {
  // it worked! 
  console.log(this.requestId, this.data);
}).onFailure(function() {
  // uh oh! 
  console.log(this.requestId, this.error);
});

A potentially outdated list of supported AWS services and methods is provided below:

  • allocateAddress
  • associateAddress
  • createKeyPair
  • deleteKeyPair
  • describeAddresses
  • describeAvailabilityZones
  • describeInstances
  • describeKeyPairs
  • describeRegions
  • disassociateAddress
  • getConsoleOutput
  • importKeyPair
  • rebootInstances
  • releaseAddress
  • startInstances
  • stopInstances
  • changeResourceRecordSets
  • createHostedZone
  • deleteHostedZone
  • getChange
  • getHostedZone
  • listHostedZones
  • listResourceRecordSets
  • createBucket
  • deleteBucket
  • deleteObject
  • getObject
  • listAllMyBuckets
  • listBucket
  • putObject
  • deleteVerifiedEmailAddress
  • getSendQuota
  • getSendStatistics
  • listVerifiedEmailAddresses
  • sendEmail
  • verifyEmailAddress
  • batchDeleteAttributes
  • batchPutAttributes
  • createDomain
  • deleteAttributes
  • deleteDomain
  • domainMetadata
  • getAttributes
  • listDomains
  • putAttributes
  • select
  • addPermission
  • confirmSubscription
  • createTopic
  • deleteTopic
  • getSubscriptionAttributes
  • getTopicAttributes
  • listSubscriptions
  • listSubscriptionsByTopic
  • listTopics
  • publish
  • removePermission
  • setSubscriptionAttributes
  • setTopicAttributes
  • subscribe
  • unsubscribe
  • createQueue
  • deleteQueue
  • listQueues
  • getQueueUrl
  • getQueueAttributes
  • setQueueAttributes
  • addPermission
  • removePermission
  • sendMessage
  • sendMessageBatch
  • receiveMessage
  • deleteMessage
  • deleteMessageBatch
  • changeMessageVisibility
  • changeMessageVisibilityBatch