Reputation: 1823
I am trying to deploy using CodeDeploy.
And I'm followed all of the tutorial from aws docs.
But that give a below log.
Any advice or suggestion would be appreciated. Thank you in advance.
2018-06-23 06:42:38 ERROR [codedeploy-agent(26957)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Missing credentials - please check if this instance was started with an IAM instance profile
Upvotes: 0
Views: 1038
Reputation: 7464
It appears that your issue is that the EC2 instance does not have an IAM instance profile associated with it. In order for the CodeDeploy agent to communicate with CodeDeploy, it needs to get IAM credentials. Here's an overview and more details on how it needs to be set up.
In a nutshell, your instance needs an IAM instance profile that has the appropriate permissions to talk with CodeDeploy and download from S3. If you're using CodeDeploy on-premise instances, the setup is different. See the documentation.
Upvotes: 1