我正在尝试通过 AWS CLI 删除云端分发。正在做
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 执行此操作?