Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 729 Bytes

amazon.md

File metadata and controls

28 lines (22 loc) · 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
});