buildspec
The YAML file that tells CodeBuild which commands to run in each build phase, which variables to set and which artifacts and reports to keep.
In more detail
It has an env block for variables and secrets, phases named install, pre build, build and post build, and sections for artifacts, reports and cache. A failure in an early phase skips straight to the end, while post build still runs after a failed build unless told otherwise. Secrets belong in Parameter Store or Secrets Manager references, never in plain variables.
Related terms
- AWS CodeBuild — The AWS managed build service that runs the commands in a buildspec inside a fresh container and reports the result.
- YAML — A human-friendly text format for configuration, where indentation shows structure.
Taught in
- CodePipeline: Stages, Actions And The Key Nobody Shared — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- CodeBuild: The Build That Passed With Failing Tests — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep