AWS CodeDeploy - 请求中包含的安全令牌无效

时间:2017-12-13 14:49:58

标签: amazon-web-services aws-code-deploy

我正在尝试使用Github设置Codedeploy但不断获取:

The overall deployment failed because too many individual instances failed 
deployment, too few healthy instances are available for deployment, or some 
instances in your deployment group are experiencing problems. (Error code: 
HEALTH_CONSTRAINTS)

检查服务器上的/var/log/aws/codedeploy-agent/codedeploy-agent.log后,会出现以下错误:

 2017-12-13 10:15:34 ERROR [codedeploy-agent(25805)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Cannot reach InstanceService: Aws::CodeDeployCommand::Errors::UnrecognizedClientException - The security token included in the request is invalid. 2017-12-13 10:15:42 INFO  [codedeploy-agent(25805)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1352_rpm. 2017-12-13 10:15:44 INFO  [codedeploy-agent(25805)]: [Aws::CodeDeployCommand::Client 400 2.152917 3 retries] poll_host_command(host_identifier:"arn:aws:ec2:eu-west-2:971219192778:instance/xxx") Aws::CodeDeployCommand::Errors::UnrecognizedClientException The security token included in the request is invalid.

我更像是一名前端开发人员,所以不知道在哪里调试。基于AWS Documentation,尝试设置我的一个github项目以使用AWS EC2 Codedeploy。

根据在线建议,我检查了凭证(〜/ .aws /凭证),一切似乎都没问题。

如果您可以请进一步告诉我如何尝试或如何找到问题的根源。

提前致谢。

0 个答案:

没有答案