【以下的问题经过翻译处理】 我的部署脚本在 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.
但该命令在本地运行时可以正常工作。