AWS CLIでCloudFrontのキャッシュクリアする方法
コマンド aws cloudfront create-invalidation
aws cloudfront create-invalidation --distribution-id [distribution-id] --paths "/*"
[root@dfd9ebcec644]# aws cloudfront create-invalidation --distribution-id [distribution-id] --paths "/*"
{
"Location": "https://cloudfront.amazonaws.com/2020-05-31/distribution/EAQLB4KQWNYRN/invalidation/I19QSY5O2MCF0N",
"Invalidation": {
"Id": "I19QSY5O2MCF0N",
"Status": "InProgress",
"CreateTime": "2021-04-03T03:35:59.482Z",
"InvalidationBatch": {
"Paths": {
"Quantity": 1,
"Items": [
"/*"
]
},
"CallerReference": "cli-1617420956-673780"
}
}
}