feat(scripts): cloudfront invalidation utility
This commit is contained in:
parent
5cbbf0c574
commit
3042a7f5a7
1 changed files with 9 additions and 0 deletions
9
scripts/invalidate.sh
Executable file
9
scripts/invalidate.sh
Executable 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 "$*"
|
||||
Loading…
Add table
Add a link
Reference in a new issue