Skip to content

A CLI tool that invalidates a web hosting AWS CloudFront distribution

License

Notifications You must be signed in to change notification settings

qais-aboujaoude/cloudfront-invalidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloudFront-Invalidator

A command line tool that invalidates the cahce of a web hosting CloudFront distribution by giving a S3 Bucket name.

Installing

install globally via npm:

npm i -g cloudfront-invalidator

Usage

This program will assume the AWS region to be defined as a global variable.

If the region is not defined as a global variable, then it will retrieve the region from the ~/.aws/credentials or the ~/.aws/config.

You can read more about how the aws-sdk handles the region here

Easiest way to switch/modify the region would be to set the AWS_REGION global variable

export AWS_REGION=<your region>
// example:
export AWS_REGION=us-west-2

Examples:

cloudfront-invalidator -b [s3 bucket name]

Built With

  • aws-sdk - SDK for managing AWS resources
  • Commander - Tooling to create CLI tools with node.js

Authors

  • Qais Aboujaoude

License

This project is licensed under the Mozilla Public License MPL License - see the LICENSE.md file for details

About

A CLI tool that invalidates a web hosting AWS CloudFront distribution

Resources

License

Stars

Watchers

Forks

Packages

No packages published