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 年前7650 查看次数
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!

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

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

回答问题的准则