【发布时间】:2021-10-19 01:12:35
【问题描述】:
我有单个 ec2 实例在 ubuntu 服务器上运行,我正在尝试使用 codedeploy 实现 CI/CD 流,源是 bit-bucket。我还在 ec2 实例上安装了 codedeploy-agent,它已安装并成功运行,但无论何时我在 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.
在我使用 less /var/log/aws/codedeploy-agent/codedeploy-agent.log 访问的 CodeDeploy 代理日志文件中显示以下错误:
ERROR [codedeploy-agent(31598)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller:
Missing credentials - please check if this instance was started with an IAM instance profile
我无法理解如何才能克服有人告诉我的这个错误。
【问题讨论】:
标签: amazon-web-services amazon-ec2 aws-code-deploy