$ wget https://Bucket-name.s3.Region-identifier.amazonaws.com/latest/install
Next up, we need to change the permission on the install file we will get after running the command above.
$ chmod +x ./install
$ sudo ./install auto > /tmp/logfile
Here we are logging the output of the installation to the /tmp/logfile file. To check if the codedeploy-agent is running, enter this command:
$ sudo service codedeploy-agent status
$ sudo service codedeploy-agent status