Skill 1.4.2
Configuring deployment agents (for example, CodeDeploy agent)
Key Concepts
The CodeDeploy agent polls CodeDeploy for work, downloads the revision and runs the appspec lifecycle hooks. Install it with Systems Manager (the AWSCodeDeployAgent Distributor package or a State Manager association) or in the AMI or user data, and keep it updated. On-premises servers are registered with an IAM user or role and tagged so deployment groups can target them.
If the agent is stopped, the deployment waits and then fails. Agent logs in /var/log/aws/codedeploy-agent/ and deployment logs under /opt/codedeploy-agent/deployment-root/ show download and script errors. The instance needs outbound HTTPS access to CodeDeploy and S3 endpoints.