Update the CodeDeploy agent on Amazon Linux or RHEL - Amazon CodeDeploy
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Update the CodeDeploy agent on Amazon Linux or RHEL

To configure automatic, scheduled updates of the CodeDeploy agent using Amazon Systems Manager, follow the steps in Install the CodeDeploy agent with Amazon Systems Manager.

If you want to force an update of the CodeDeploy agent, sign in to the instance, and run the following command:

sudo /opt/codedeploy-agent/bin/install auto