Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS CodeDeploy - Error deploying - 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 CodeDeploy agent is running

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

but I haven't found the folder deployment-root inside /opt/codedeploy-agent !

like image 339
Francisco José Rivera Pantoja Avatar asked Apr 22 '16 11:04

Francisco José Rivera Pantoja


People also ask

What should be checked first when an AWS CodeDeploy deployment fails?

Check the format of your AppSpec file. For more information, see Add an application specification file to a revision for CodeDeploy and CodeDeploy AppSpec File reference. Check your Amazon S3 bucket or GitHub repository to verify your application revision is in the expected location.

How do you check logs on CodeDeploy?

You can view the log data created by a CodeDeploy deployment by setting up the Amazon CloudWatch Logs agent to view aggregated data in the CloudWatch console or by logging into an individual instance to review the log file. Logs are not supported for AWS Lambda or Amazon ECS deployments.


1 Answers

You are deploying to region eu-central-1. But you may not be listing the applications in eu-central-1 using following command:

aws deploy list-applications

Instead, use following command to ensure that application exists:

aws deploy list-applications --region eu-central-1
like image 127
Halil Avatar answered Nov 15 '22 15:11

Halil