How to Install the CodeDeploy agent for Amazon Linux?

Sandesh Kumar
Nov 6, 2021
sudo yum update
sudo yum install ruby
sudo yum install wget
wget https://bucket-name.s3.region-identifier.amazonaws.com/latest/install

bucket-name is the name of the Amazon S3 bucket that contains the CodeDeploy Resource Kit files for your region. region-identifier is the identifier for your region. For example, for the US East (Ohio) Region, replace bucket-name with aws-codedeploy-us-east-2 and replace region-identifier with us-east-2. For a list of bucket names and region identifiers, see Resource kit bucket names by Region.

chmod +x ./install

To install the latest version of the CodeDeploy agent:

sudo ./install autosudo service codedeploy-agent status

--

--