barrettruth.com/scripts/invalidate-cache.sh
2025-05-22 14:23:22 -05:00

10 lines
191 B
Bash

#!/bin/sh
if [ -z "$1" ]; then
echo "Must specify AWS cloudfront distribution to invalidate."
exit
fi
aws cloudfront create-invalidation \
--distribution-id "$1" \
--paths "/*"