UNPKG

@yawetse/pkgcloud

Version:

An infrastructure-as-a-service agnostic cloud library for node.js

29 lines (22 loc) 729 B
## 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: ```Javascript 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 }); ``` ```Javascript 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 }); ```