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

The procedures in this guide support the new console design. If you choose to use the older version of the console, you will find many of the concepts and basic procedures in this guide still apply. To access help in the new console, choose the information icon.

Install or Reinstall the CodeDeploy Agent

If you suspect the 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 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 CodeDeploy.