我正在尝试通过AWS CLI删除一个CloudFront分发。操作如下:
aws cloudfront delete-distribution --id <DISTRIBUTION-ID>
我遇到了以下错误:
A client error (InvalidIfMatchVersion) occurred when calling the DeleteDistribution operation:
The If-Match version is missing or not valid for the resource.
我不太明白这个错误的含义以及如何避免它。
根据此文档,我认为需要先禁用分发。但是如果是这样的话-我该如何使用CLI来实现呢?