AWS CodeDeploy - 错误部署 - ApplicationDoesNotExistException

时间:2016-04-22 11:32:18

标签: amazon-web-services

我想使用以下方式在AWS中部署项目:

$ 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代理正在运行

[root@ip-171-33-54-212 ~]# /etc/init.d/codedeploy-agent status
The AWS CodeDeploy agent is running as PID 2649

但我在deployment-root内找不到文件夹/opt/codedeploy-agent

1 个答案:

答案 0 :(得分:2)

您正在部署到地区eu-central-1。但您可能无法使用以下命令在eu-central-1中列出应用程序:

aws deploy list-applications

相反,请使用以下命令确保应用程序存在:

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