Digvijay
Digvijay

Reputation: 3271

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.

Upvotes: 2

Views: 1128

Answers (2)

Ravi Kumar CH
Ravi Kumar CH

Reputation: 541

appspec.yml file is what instructs the codedeploy agent on what are the steps to run on the EC2 instances. You can find the detailed structure and example provided by AWS

Upvotes: 1

Marcin
Marcin

Reputation: 238111

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:

Upvotes: 1

Related Questions