AWS CodeDeploy
User Guide (API Version 2014-10-06)

Install or Reinstall the AWS CodeDeploy Agent

If you suspect the AWS CodeDeploy agent is missing or not working, you can run commands on an instance to install or reinstall it.


An IAM instance profile with permission to access the Amazon S3 bucket that contains the agent installation files for your region must be attached to each Amazon EC2 instance. Without the permissions provided by the IAM instance profile, the instance will not be able to download AWS CodeDeploy agent installation files. For information, see Step 4: Create an IAM Instance Profile for Your Amazon EC2 Instances and Configure an Amazon EC2 Instance to Work with AWS CodeDeploy.