在CodePipeline中调用 AWS CloudFront create-invalidation 时出错。

0

【以下的问题经过翻译处理】 我的部署脚本在 codepipeline 流程的 codebuild 作业中运行失败。该脚本在过去几个月一直能够正常运行,但现在出现问题。

调用的命令是:aws cloudfront create-invalidation --distribution-id $DISTRIBUTION_ID --paths '/*'

我们收到的报错为:An error occurred (ServiceUnavailable) when calling the CreateInvalidation operation (reached max retries: 2): CloudFront encountered an internal error. Please try again.

但该命令在本地运行时可以正常工作。

profile picture
EXPERT
asked 9 months ago80 views
1 Answer
0

【以下的回答经过翻译处理】 要找出错误的原因,可能需要对内部日志进行调查。最好的解决办法可能就是联系AWS support支持团队,请他们排查此问题。请提交一份技术工单。

profile picture
EXPERT
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions