Error when calling aws cloudfront create-invalidation

0

A deploy script running in a codebuild job part of a codepipeline pipeline is failing. The script has been running fine for several months until now.

The command called is: aws cloudfront create-invalidation --distribution-id $DISTRIBUTION_ID --paths '/*'

The exception we get is: An error occurred (ServiceUnavailable) when calling the CreateInvalidation operation (reached max retries: 2): CloudFront encountered an internal error. Please try again.

Running the command locally works fine.

  • I experienced the same issue today in our GHA workflow which uses this command:

    aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_ID_STAGING }} --paths /\*
    

    Re-ran the failed workflow and it's passed. But not sure why and when it happens. AWS status page tells me that Cloudfront service stays healthy. :-(

Fredrik
已提問 2 年前檢視次數 7649 次
1 個回答
2
已接受的答案

To find out the error cause, an investigation of the internal logs might be required. The best way for resolving such kind of issues is probably just contacting AWS Support, so the support team can look into this. Please open a support request.

profile pictureAWS
已回答 2 年前
  • The problem with AWS support is that for questions outside of billing, the support is paid. This means bug reports like this have no where to go. It seems like it was a bug btw, because now it's working without any changes from our side. Thanks for the answer!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南