Boreas is a CloudFront invalidator. It is named after the Greek god of the North Wind, who blows all the clouds away.
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
$ 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...................