Last active
November 27, 2016 04:18
-
-
Save PharaohKJ/ed2e889636126294bc87f0359a33a0fc to your computer and use it in GitHub Desktop.
cloudfront invalidation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cp template.json _amazon.json | |
$ cat _amazon.json | |
{ | |
"DistributionId": "MY-DESTRIBUTION-ID", | |
"InvalidationBatch": { | |
"Paths": { | |
"Quantity": 1, | |
"Items": [ | |
"/*" | |
] | |
}, | |
"CallerReference": "__CRF__" | |
} | |
} | |
$ export CRF=`date +"%Y%m%d%H%M%S"` && sed -i "s/__CRF__/$CRF/g" _amazon.json && aws --profile octopress cloudfront create-invalidation --cli-input-json file://_amazon.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment