Whenever you create a CodeBuild project, you must define how CodeBuild should test and build your application source code, and then publish application artifacts and/or Docker images. CodeBuild defines these tasks within a build specification, which provides the build instructions the CodeBuild agent should execute when running a build.
CodeBuild allows you to provide a build specification in several ways:
- Self-defined: CodeBuild looks for a file that is defined within the source repository of the project. By default, this is a file called buildspec.yml; however, you can also configure a custom file where your build specification is located.
- Preconfigured: When you create a CodeBuild project, you can define a build specification as part of your project setup.
- On demand: If you initiate a CodeBuild build job using the...