1.0.1 • Published 8 years ago

cloudfront-invalidate v1.0.1

Weekly downloads
17
License
ISC
Repository
-
Last release
8 years ago

Invalidate cloudfront distribution cache

Creates a invalidation for cloudfront cache

Install

$ npm i -g cloudfront-invalidate

Usage

Cli

$ cloudfront-invalidate --help

Example:

Create invalidate rule for /build/* directory.

$ cloudfront-invalidate -d DISTRIBUTION_ID '/build/*'

Node

const invalidateCache = require('cloudfront-invalidate');
invalidateCache(distributionId, [ 'paths', 'to', 'invalidate' ], {
    callerReference: REFERENCE // optional
}, function(err, data) {});
1.0.1

8 years ago

1.0.0

8 years ago