I'm trying to implement a pipeline on AWS, but I get an error:
YAML_FILE_ERROR: YAML file does not exist
I don't know why. I'm using github repo for mean stack project, entry file is docker-compose. Yml
.
I'm trying to implement a pipeline on AWS, but I get an error:
YAML_FILE_ERROR: YAML file does not exist
I don't know why. I'm using github repo for mean stack project, entry file is docker-compose. Yml
.
AWS CodeBuild expects the buildspec.yml
file to be at the top level. A common mistake people make is to zip the code folder, which does contain buildspec.yml
at the top level, but when this zip file is extracted, it creates the code folder and puts the buildspec.yml
inside that (the way it was locally), meaning buildspec.yml
is now NOT at the top level.
The solution is: instead of zipping the code folder, go inside the code folder, select all the files, and then do a zip.
This is what Amazon says here:
Important
Do not include the (root directory name) directory, only the directories and files in the (root directory name) directory.
It's a quirky little thing that trips many people (including me).
Now Amazon has given an option to change the location of the buildspec.yml file or even change the yml file name.
In Developer Tool -> Build -> "Build Project" -> "Your project Name" -> "Build details" -> Buildspec -> "Buildspec name - optional"
This is the instruction by AWS for that setting:
If your buildspec file uses a different name or location, enter its path from the source root here (for example, buildspec-two.yml or configuration/buildspec.yml).
There is possible you are missing buildspec.yaml or buildspec.yml file, other possibility is that you might wrong name of this file.
© 2022 - 2024 — McMap. All rights reserved.
buildspec.yml
... – Peplosbuildspec.yml
where. becausedocker-compose.yml
file is for same work – Lammasdocker-compose.yml
tobuildspec.yml
? on my github repository. – Lammasbuildspec.yml
getting some error i thing i made mistake onbuildspec.yml
file cam help to sort out this problemMEAN STACK
project contains two folderAPI
,FRONT END
andbuildspec.yml
. – Lammasbuildspec.yml
file problem is solved in deploy failed with different different error. i'm to try to figure out but but not help me to short out this problem. – Lammasbuildspec.yml
file. – Peplos