Permalink
29 lines (22 sloc) 729 Bytes

Using the Amazon (AWS) provider in pkgcloud

The Amazon provider in pkgcloud supports the following services:

  • Compute (EC2)
  • Storage S3 (Simple Storage Service)

Client Creation

For all of the Amazon services, you create a client with the same options:

var client = require('pkgcloud').compute.createClient({
   provider: 'amazon',
   keyId: 'your-access-key-id', // access key id
   key: 'your-secret-key-id', // secret key
   region: 'us-west-2' // region
});
var client = require('pkgcloud').storage.createClient({
   provider: 'amazon',
   keyId: 'your-access-key-id', // access key id
   key: 'your-secret-key-id', // secret key
   region: 'us-west-2' // region
});