2015-06-08 51 views
0

我正試圖在ubuntu上使用AWS codedeploy。代理不啓動。 這裏的Userdata的樣子:有沒有人在Ubuntu上成功使用過codedeploy?

"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"**** 

回答

5

有沒有必要使用外國人。還有一個正式的deb包。 s3://aws-codedeploy-us-east-1/latest/codedeploy-agent_all.deb

您應該使用s3:// aws-codedeploy-us-east-1/latest/install上的安裝腳本自動下載最新版本的代理。下面是Ubuntu的用戶數據例如美國東1 here

#!/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

+0

你用它在我有在Ubuntu 14.04安裝它麻煩的Ubuntu 14.04或1。 – bhupinder

相關問題