node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »



npm install aws-simple-request

Example Use:

const awsApi = require('aws-simple-request');
// assuming your credentials are passed in via process.env 
let awsReq = new awsApi.awsRequest(process.env.secretKey, process.env.keyId, process.env.associateTag);
// make the request 
awsReq.makeRequest('',  '/onca/xml', {
      "Operation": "ItemSearch",
      "SearchIndex": "Books",
      "Title": "Node.js"
    }, function (err, response, body) {
      if(err) throw err;


Class: awsRequest

awsRequest.constructor(secretKey, keyId, associateTag)


  • secretKey: string, aws secret access key. Should look like 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'
  • keyId: string, aws access key id. The Identifier for your Key. Should look like 'AKIAIOSFODNN7EXAMPLE'
  • associateTag: string, AssociateTag Parameter

More Information:

awsRequest.makeRequest(endpoint, path, params, callback)


  • endpoint: string, amazon host. For Example: ''
  • path: string, For Example: '/onca/xml'
  • params: object, object which attributes should conform aws docs.
  • callback: function, function that get called with (error, response, body)

More Information