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 also install the CodeDeploy agent directly from an S3 bucket with the command line.
For the recommended version to install, see Version history of the CodeDeploy agent.