Buildspec.yml file position in my terraform project

890 Views Asked by At

So, I have a big terraform folder where I put all my work with terraform. In that terraform folder I have a terraform-project subfolder which is a structured terraform project with modules, environments, etc. I was wondering where should I put my buildspec.yml file so my aws_codebuild_project will see it. I tried putting it in the modules folder, on the same level as module folder and on the same level as terraform-project folder. This is how my terraform folder looks like.

The aws_codebuild_project looks like this and this.

I use the code build in environment like this.

When I run the pipeline, at build stage I always get this error.

0

There are 0 best solutions below