Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

cloudfront_invalidator

This simple python script will invalidate AWS cloudfront cache for a given distro ID. Intended for use with travis-ci, but should be easily adaptable to other circumstances.

Setup

Requires boto: pip install boto

Change the placeholders <replace with cloudfront distro id> in the file invalidator.py to reflect your distro ids.

Example usage in a travis.yml:

after_deploy:
- pip install --user boto
- python invalidator.py -a $AWS_ACCESS_KEY -s $AWS_SECRET_KEY -b $TRAVIS_BRANCH

In the above example, one is required to set the AWS_ACCESS_KEY and AWS_SECRET_KEY environment variables. TRAVIS_BRANCH is always available.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages