Today was trying to install CodeDeploy agent on RHEL 7 and it failed. See details:
[root@rhel7 ~]# aws --region us-east-1 deploy install --config-file codedeploy.onpremises.yml --override-config
Creating the on-premises instance configuration file... DONE
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Package ruby-2.0.0.648-36.el7.x86_64 already installed and latest version
Nothing to do
Installing the AWS CodeDeploy Agent... ERROR
Failed to stop the AWS CodeDeploy Agent:
Redirecting to /bin/systemctl stop codedeploy-agent.service
Failed to stop codedeploy-agent.service: Unit codedeploy-agent.service not loaded.
Install the AWS CodeDeploy Agent on the on-premises instance by following the instructions in "Configure Existing On-Premises Instances by Using AWS CodeDeploy" in the AWS CodeDeploy User Guide.
[root@rhel7 ~]# aws --version
aws-cli/1.18.40 Python/2.7.5 Linux/3.10.0-1062.9.1.el7.x86_64 botocore/1.15.40
[root@rhel7 ~]# uname -r
3.10.0-1062.9.1.el7.x86_64
[root@rhel7 ~]# rpm -qa | grep ruby
rubygem-bigdecimal-1.2.0-36.el7.x86_64
rubygems-2.0.14.1-36.el7.noarch
ruby-libs-2.0.0.648-36.el7.x86_64
rubygem-psych-2.0.0-36.el7.x86_64
ruby-2.0.0.648-36.el7.x86_64
rubygem-json-1.7.7-36.el7.x86_64
rubygem-rdoc-4.0.0-36.el7.noarch
ruby-irb-2.0.0.648-36.el7.noarch
rubygem-io-console-0.4.2-36.el7.x86_64
Today was trying to install CodeDeploy agent on RHEL 7 and it failed. See details: