DOP-C02

Introduction to AWS CodeBuild

The managed build service at the centre of most AWS pipelines: projects, build environments, the buildspec file, performance and networking options, and the secure handling of build and deployment secrets.

  • 4 lessons
  • Module quiz

Before code can be deployed, it must be built: dependencies are downloaded, code is compiled, tests and checks run, and the result is packaged as an artifact such as a ZIP file or a container image. AWS CodeBuild is a fully managed build service that runs each build in a fresh, temporary environment following the commands in a buildspec file, so there are no build servers to maintain and builds do not interfere with one another.

CodeBuild runs builds started by webhooks, by CodePipeline, by EventBridge or on demand, and sends logs to CloudWatch Logs and S3. It is billed per minute of build time for the compute type chosen.

Where this module fits

CodeBuild is the workhorse of most AWS pipelines: it compiles, tests, scans, packages and can even run deployment commands. The exam expects detailed knowledge of the buildspec, the build environment and its networking, caching and performance options, and especially the secure handling of secrets in builds, which the exam guide names as a separate skill.

How this module is organised

Understanding Build Projects in AWS CodeBuild describes projects, sources, service roles and how builds are started. Writing Buildspec Files explains phases, environment variables, artifacts, reports and caching. Configuring Build Environments, Performance and Networking covers images, compute types, VPC access, batch builds and reserved capacity. Managing Build and Deployment Secrets explains how builds and deployments use Secrets Manager and Parameter Store without exposing secrets.

  1. Understanding Build Projects in AWS CodeBuild Lesson 1
  2. Writing Buildspec Files Lesson 2
  3. Configuring Build Environments, Performance and Networking Lesson 3
  4. Managing Build and Deployment Secrets Lesson 4
  5. Practise and review
  6. Checkpoint Practice activities across the module
  7. Test your knowledge 4 questions