feat(scripts): cloudfront invalidation utility

This commit is contained in:
Barrett Ruth 2024-06-05 09:50:46 -05:00
parent 5cbbf0c574
commit 3042a7f5a7

9
scripts/invalidate.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
[ "$#" -lt 1 ] && echo "Usage: $0 <distribution-id> <path1> [path2 ...]" && exit 1
DISTRIBUTION_ID="$1"
shift
aws cloudfront create-invalidate --distribution-id "$DISTRIBUTION_ID" --paths "$*"