Skip to content

Container based Python CLI for warming CloudFront edge servers

Notifications You must be signed in to change notification settings

danielwhatmuff/aws-cf-warm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-cf-warm

Customizing

  • To focus your warm on particular countries, choose reliable DNS servers from the "Public DNS Servers by country" links here public-dns.info
  • Configure country code and IPs within config/dns-servers.yml
  • Warming will run from the top down

Using the CLI

  • IMPORTANT: The CLI must be run in Docker, to avoid messing with your hosts DNS - install it here Docker Install 🐋
  • Alias it to easily run from the command line

Build the image (to use customized DNS servers)

$ git clone git@github.com:danielwhatmuff/aws-cf-warm.git && cd aws-cf-warm && docker build -t aws-cf-warm .
$ alias aws-cf-warm='docker run --rm -ti aws-cf-warm aws-cf-warm'

Or you can pull the image (this will use preconfigured selection of DNS servers)

$ docker pull danielwhatmuff/aws-cf-warm
$ alias aws-cf-warm='docker run --rm -ti danielwhatmuff/aws-cf-warm aws-cf-warm'

Warm your CF distribution!

$ aws-cf-warm -d yourapp.com -p https

Warm your CF distribution using a list of file paths!

$ aws-cf-warm -d yourapp.com -p https -f config/myfiles.yml

View options

$ aws-cf-warm -h

Contributing / Issues

  • Please fork the repo and create a PR to contribute.
  • If you come across any dodgy DNS servers, please report them as an issue.

About

Container based Python CLI for warming CloudFront edge servers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages