Skip to content

jimjkelly/cloudfront-invalidate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudfront Invalidate

The CloudFront Invalidate tool does just what it says on the tin - it invalidates a CloudFront distribution. This is useful for when deploying static web assets, like a simple static website backed by S3, where it's easier to just invalidate the whole distribution than try and pick out what changed.

Installation

Installation is via npm:

$ npm install @jimjkelly/cloudfront-invalidate

Configuration

The standard methods of configuration for the AWS-SDK apply. An easy method is using environment variables.

Usage

The only argument required to run the tool is your CloudFront distribution ID:

$ cloudfront-invalidate DISTRIBUTION_ID

If successful, a bit of JSON will be spit out indicating your invalidation is in progress. Success!

If there's a problem, the error information returned from the AWS SDK should be printed and indicate what it is.

About

Invalidates a CloudFront Distribution, Easily

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published