Search code examples
amazon-web-servicesamazon-ec2aws-code-deploy

Code deploy agent unable to find appspec.yml file


I am trying to perform CI/CD workflow on ec2 instance using aws codedeploy but I am getting below error at the time of deployment:

The CodeDeploy agent did not find an AppSpec file within the unpacked revision directory at 
revision-relative path "appspec.yml".

How can I create appsepc.yml file in order to succeed deployment.As I doing it first time.Someone let me know.


Solution

  • Exact setup of appsepc.yml is use-case specific, and it has to be tailored to your application requirements. Thus you are the only one who can create it.

    But AWS provides examples of such files: