Cogito Interruptus Vulgaris
9 Apr 2018 | 1 min. (61 words)

Bash Tips

Some odds and ends...

Invalidate CloudFront and wait

invalidate-cf-and-wait() {   id=$(aws cloudfront create-invalidation \
--distribution-id $1 --path '/*' --profile $2 | egrep Id | awk -F'"' '{ print $4}' ); \
echo "Waiting for invalidation $id";\
aws cloudfront wait invalidation-completed --id $id \
--distribution-id $1 --profile $2 && \
osascript -e "display notification 'Invalidation $id completed' with title 'CF Invalidation'" ; }
Reddit Twitter

Serverless blog HOWTO

building a serverless analytics platform at lolscale

2018 Mark Steele