有人在 Ubuntu 上成功使用过 codedeploy 吗?

Has anyone successfully used codedeploy on Ubuntu?

我正在尝试在 ubuntu 上使用 AWS codedeploy。代理不启动。 这是 Userdata 的样子:

"UserData" : {
                    "Fn::Base64" : {
...
                                "# Install the AWS CodeDeploy Agent.\n",
                                "aws s3 cp 's3://aws-codedeploy-us-east-1/latest/codedeploy-agent.noarch.rpm' . \n",
                                "apt-get install alien",
                                "alien /root/codedeploy-agent.noarch.rpm",
                                "dpkg -i codedeploy-agent_1.0-2.727_all.deb 
> codedeploy-agent.log"****

不用外星人。还有一个官方的 deb 包。 s3://aws-codedeploy-us-east-1/latest/codedeploy-agent_all.deb

您应该使用位于 s3://aws-codedeploy-us-east-1/latest/install 的安装脚本来自动下载最新版本的代理。这是 us-east-1 here:

中 Ubuntu 的用户数据示例

#!/bin/bash apt-get -y update apt-get -y install awscli apt-get -y install ruby2.0 cd /home/ubuntu aws s3 cp s3://bucket-name/latest/install . --region region-name chmod +x ./install ./install auto