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?

posta 2 anni fa953 visualizzazioni
1 Risposta
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
TECNICO DI SUPPORTO
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande