AWS CodeDeploy - Deployment Error - ApplicationDoesNotExistException

I want to deploy a project in AWS using:

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

But I got this error:

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

but the application exists:

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

and the codedeploy agent works

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

but I did not find the deployment-root folder inside /opt/codedeploy-agent !

+5
source share
1 answer

You are deploying the eu-central-1 scope. But you cannot list applications in eu-central-1 using the following command:

 aws deploy list-applications 

Instead, use the following command to verify that the application exists:

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

Source: https://habr.com/ru/post/1247708/


All Articles