Skip to content

baltimore-sun-data/boreas

Repository files navigation

Boreas GoDoc Go Report Card Build Status

Boreas is a CloudFront invalidator. It is named after the Greek god of the North Wind, who blows all the clouds away.

Installation

First install Go.

If you just want to install the binary to your current directory and don't care about the source code, run

GOBIN="$(pwd)" GOPATH="$(mktemp -d)" go get github.com/baltimore-sun-data/boreas

Screenshots

$ boreas -h
Usage of boreas:

    boreas [options] <invalidation path>...

Invalidation path defaults to '/*'.

AWS credentials taken from ~/.aws/ or from "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", and other AWS 
configuration environment variables.


Options:

  -dist string
        CloudFront distribution ID
  -ref string
        CloudFront 'CallerReference', a unique identifier for this invalidation request. (default: Unix timestamp)
  -wait duration
        Time out to wait for invalidation to complete. Set to 0 to exit without waiting. (default 10m0s)

$ boreas -dist EABC123EFG4567
2018/02/15 14:35:43 Invalidation ID: "IQ2JXQ53AYXGBB"
Invalidating...................