AWS CodePipeline, build error and getting error like YAML_FILE_ERROR M

I am new to AWS CodePipeline and have never had experience with continuous integration tools like Jenkins, etc. I created a new AWS CodePipeline as AWS CodeCommit (code repository) -> CodeBuild (not docker, but the environment - NodeJS 7) -> AWS CodeDeploy. All on AWS only. This is an Angular2 project that is finally up and running on EC2 instances (Windows Server 2008). From my local computer, I can transfer my code to AWS CodeCommit through the active IAM user (access to Git), and then I see that CodePipleline starts working where everything is fine with the source code (green), but in the next step, those. assembly fails (red to color). When I click on its details, I see the following error log: -

https://forums.aws.amazon.com/ 2016/12/23 18:21:16 Waiting for the agent https://forums.aws.amazon.com/ 2016/12/23 18:21:36 Phase DOWNLOAD_SOURCE https: //forums.aws.amazon.com/ 2016/12/23 18:21:38 Phase completed: DOWNLOAD_SOURCE Success: incorrect https://forums.aws.amazon.com/ 2016/12/23 18:21: 38 Code phase context status: YAML_FILE_ERROR Message: YAML file does not exist https://forums.aws.amazon.com/ 2016/12/23 18:21:38 Runtime error (YAML file does not exist)

Can someone please direct me to this error? I do not know what this YAML file means. I googled but didn’t find anything in terms of my NodeJS Angular project.

Thanks Vinod Kumar

+9
source share
3 answers

The file referenced by YAML is the buildspec.yml file required by CodeBuild. More information can be found at http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html

+13
source

They have already answered, but just added in case someone else encounters this problem.

Yaml files are usually associated with the .yaml or .yml extensions.

The code assembly seems to be looking for buildspec.yml and cannot see .yaml.

0
source

AWS . https://docs.aws.amazon.com/codebuild/latest/userguide/getting-started.html

although my zip file contains a yml file, my build fails with the phase context status code: YAML_FILE_ERROR Message: YAML file does not exist

0
source

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


All Articles