Install or Reinstall the CodeDeploy Agent - AWS CodeDeploy

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.