Install the CodeDeploy agent - 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.

Install the CodeDeploy agent

To use CodeDeploy on EC2 instances or on-premises servers, the CodeDeploy agent must be installed first. We recommend installing and updating the CodeDeploy agent with Amazon Systems Manager, for more information about Systems Manager, see What is Amazon Systems Manager. You can set up installation and scheduled updates of the CodeDeploy agent with Systems Manager in the console when you create your deployment groups.

You can also install the CodeDeploy agent directly from an S3 bucket with the command line.