Home > OS >  AWS Copilot pipeline fails, why cant CodeBuild find buildspec.yml?
AWS Copilot pipeline fails, why cant CodeBuild find buildspec.yml?

Time:05-10

I created an aws Copilot pipeline but it fails because CodeBuild says it can't find buildspec.yml.

CodeBuild can't find buildspec.yml

I'm not sure where the beginning of the path comes from /codebuild/output/src1#####3/src/ however the second part of the path is exactly correct /copilot/pipelines/projectname-master/buildspec.yml

buildspec.yml exists

How can I troubleshoot why this file cannot be found?

Note: this was set up using the copilot pipeline init cli command

CodePudding user response:

I believe the problem is related to a bug surfaced here: https://github.com/aws/copilot-cli/issues/3468, which has been fixed with https://github.com/aws/copilot-cli/pull/3532 and released just this morning! Please update Copilot to v1.18.0; let us know if that doesn't solve the problem.

Thanks!

  • Related