(deprecated: use aws-sdk) NodeJS module to talk to Amazon CloudFront.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
awssum-amazon-cloudfront.js
config.js
package.json

README.md

NOTE: AwsSum is now deprecated. Please use aws-sdk instead.

awssum-amazon-cloudfront

This is an AwsSum plugin!

You'll need to add awssum-amazon-cloudfront to your package.json dependencies. Both awssum and awssum-amazon are pulled in as peer dependencies.

Example

To list all your distributions:

var fmt = require('fmt');
var amazonCloudFront = require('awssum-amazon-cloudfront');

var cf = new amazonCloudFront.CloudFront({
    'accessKeyId'     : process.env.ACCESS_KEY_ID,
    'secretAccessKey' : process.env.SECRET_ACCESS_KEY,
    'region'          : amazonS3.US_EAST_1
});

cf.ListDistributions(function(err, data) {
    fmt.dump(err, 'err');
    fmt.dump(data, 'data');
});

Author

Written by Andrew Chilton - Blog - Twitter.

License

(Ends)