diff --git a/scripts/invalidate-cache.sh b/scripts/invalidate-cache.sh new file mode 100644 index 0000000..3cdbd0f --- /dev/null +++ b/scripts/invalidate-cache.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo "Must specify AWS cloudfront distribution to invalidate." + exit +fi + +aws cloudfront create-invalidation \ + --distribution-id YOUR_DISTRIBUTION_ID \ + --paths "/*"