Here is the script for installing the AWS CodeDeploy agent on Ubuntu. See the full description here. For more information on AWS CodeDeploy, please see: https://aws.amazon.com/codedeploy/ apt update apt -y install ruby cd /tmp wget https://aws-codedeploy-eu-central-1.s3.amazonaws.com/latest/install; chmod +x ./install ./install auto service codedeploy-agent start