Not able to disable and delete a CloudFront distribution

0

When I attempt to disable an existing CloudFront Distribution, I receive the following error in red:

"Failed: The If-Match version is missing or not valid for the resource."

Afterwards, I also tried to delete the CloudFront Distribution, but I receive the following error in red:

"Failed to delete distribution: The If-Match version is missing or not valid for the resource."

After attempting to delete the distribution, the distribution returns to an "Enabled" state.

Error-messages

How can I permanently delete this distribution and resolve this issue?

已提问 2 年前953 查看次数
1 回答
0

Some web browser extensions (add-ons), for example ClearURLs, remove ETag headers, which causes updates to fail. To update your distribution, disable this browser extension or turn off ETag filtering.

Also, This error occurs because you need to first get the current distribution config with cloudfront.getDistributionConfig and then copy the ETag and DistributionConfig fields into your cloudfront.updateDistribution call. You modify the DistributionConfig as needed to achieve the actual config update you're trying to do.

Hope this helps, please click Accept answer if it helped you resolve the issue.

profile pictureAWS
支持工程师
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则