我有一个ec2实例运行在ubuntu服务器上,我试图使用码部署实现CI/CD流,而且源代码是位桶。jave还在ec2实例上安装了代码部署代理,并且成功地安装和运行,但是每当我在ec2部署上部署代码时,都会失败,错误如下所示:
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.在我使用CodeDeploy访问的less /var/log/aws/codedeploy-agent/codedeploy-agent.log代理日志文件中,显示了以下错误:
ERROR [codedeploy-agent(31598)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller:
Missing credentials - please check if this instance was started with an IAM instance profile我无法理解我如何克服这个错误,有人让我知道。
发布于 2021-08-17 05:52:40
CodeDeploy代理需要由实例的IAM /profile提供的IAM权限。在AWS文档中给出了所需的确切权限:
https://stackoverflow.com/questions/68812068
复制相似问题