ladderlore
  • Type a service name, like S3 or IAM.

Service · Developer Tools

AWS CodeBuild

A fully managed build service: it compiles code, runs tests and makes packages ready to deploy, with no build servers.

Source code
CodeBuild
Package ready to deploy
Test results
  1. 1CodeBuild gets the source code from a repository, such as GitHub, or from Amazon S3.
  2. 2In a fresh build environment, it compiles the code, runs the unit tests and reports the results.
  3. 3If the build passes, it saves the package, called an artifact, ready to deploy.
CodeBuild turns source code into a tested package.

Step by step

  1. 1CodeBuild gets the source code from a repository, such as GitHub, or from Amazon S3.
  2. 2In a fresh build environment, it compiles the code, runs the unit tests and reports the results.
  3. 3If the build passes, it saves the package, called an artifact, ready to deploy.

What it is

AWS CodeBuild is a fully managed build service, used for continuous integration (CI). It takes your source code, compiles it, runs the unit tests and produces a package that is ready to deploy, called an artifact.

There are no build servers to set up, patch or scale. Each build runs in a fresh, temporary environment. AWS provides ready-made environments for popular programming languages, or you can bring your own. Many builds can run at the same time, and you pay only for the build minutes you use.

What it is

CodeBuild usually runs as the build and test stage of a pipeline in AWS CodePipeline, but you can also start builds on their own.

Remember

  • Compile, test and package: the build step of continuous integration.
  • Fully managed: no build servers to patch or scale.
  • Pay per build minute. Nothing to pay while nothing is building.
  • Builds run in parallel, so developers do not wait for each other.
  • Often used as the build stage of AWS CodePipeline.

On the exam

  • “Compile source code and run tests without managing build servers” points to AWS CodeBuild.
  • “Automate the whole release, from code change to deployment” points to AWS CodePipeline, which can use CodeBuild for its build stage.