Debugging CodeDeploy Health_Constraints error

$ tail -f /var/log/aws/codedeploy-agent/codedeploy-agent.log
2020-04-23 09:45:02 INFO  [codedeploy-agent(2406)]: Version file found in /opt/codedeploy-agent/.version with agent version OFFICIAL_1.0-1.1597_rpm.
2020-04-23 09:45:02 ERROR [codedeploy-agent(2406)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Missing credentials - please check if this instance was started with an IAM instance profile.
$ sudo service codedeploy-agent status
$ sudo service codedeploy-agent stop
$ sudo service codedeploy-agent start
$ sudo service codedeploy-agent restart
$ sudo service codedeploy-agent restart

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store