AWS CodeDeploy - 错误部署 - ApplicationDoesNotExistException

Fra*_*oja 7 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 .
Run Code Online (Sandbox Code Playgroud)

但我得到了这个错误:

A client error (ApplicationDoesNotExistException) occurred when calling the RegisterApplicationRevision operation: Applications not found for 289558260222
Run Code Online (Sandbox Code Playgroud)

但应用程序存在:

$ aws deploy list-applications
{
    "applications": [
        "DemoApp"
    ]
}
Run Code Online (Sandbox Code Playgroud)

和CodeDeploy代理正在运行

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

但我还没找到deployment-root里面的文件夹/opt/codedeploy-agent!

Hal*_*lil 5

您正在部署到区域eu-central-1。但是您可能不会eu-central-1使用以下命令列出应用程序:

aws deploy list-applications
Run Code Online (Sandbox Code Playgroud)

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

aws deploy list-applications --region eu-central-1
Run Code Online (Sandbox Code Playgroud)