2016-04-22 226 views
5

我想用部署在AWS項目:AWS CodeDeploy - 錯誤部署 - ApplicationDoesNotExistException

$ aws --region eu-central-1 deploy push --application-name DemoApp --s3-location s3://paquirrin-codedeploy/Project1.zip --ignore-hidden-file --source . 

但我得到這個錯誤:

A client error (ApplicationDoesNotExistException) occurred when calling the RegisterApplicationRevision operation: Applications not found for 289558260222 

但應用程序存在:

$ aws deploy list-applications 
{ 
    "applications": [ 
     "DemoApp" 
    ] 
} 

和CodeDeploy代理正在運行

[[email protected] ~]# /etc/init.d/codedeploy-agent status 
The AWS CodeDeploy agent is running as PID 2649 

但我還沒有在/opt/codedeploy-agent內找到文件夾deployment-root

+0

你找到了一個解決方案,但你可能不使用下面的命令列出在eu-central-1的應用程序? – Seonixx

回答

1

您正在部署到區域eu-central-1

​​

相反,使用下面的命令,以確保應用程序中存在:

aws deploy list-applications --region eu-central-1