Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cloudfront invalidation
$ 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
You can’t perform that action at this time.