☁️ AWS CloudFront lib for Node.js
JavaScript
Latest commit 6f6200a Oct 6, 2016 @jtblin jtblin 0.4.1
Permalink
Failed to load latest commit information.
examples use eyes in example output Jul 7, 2012
lib Fix unhandled 'error' event Sep 24, 2016
.gitignore
LICENSE
Readme.md Update readme to show session token usage Sep 19, 2016
package.json

Readme.md

Amazon CloudFront client for Node.js

Implements all the functionality in CloudFront version 2012-05-05. In addition, is there a getPrivateUrl method to create signed urls.

Please take a look at the examples folder.

How to Install

npm install cloudfront

How to use

var cloudfront = require('cloudfront');

var cf = cloudfront.createClient('access key id', 'access key secret');

cf.listDistributions(function(err, list, info) {
  console.log('Is truncated?', info.isTruncated ? 'yes' : 'no');
  console.log(list);
});

Using STS session token

var cloudfront = require('cloudfront');

var cf = cloudfront.createClient('access key id', 'access key secret', 'session token');

...

Please take a look at the examples in the example folder.

License

MIT