AWS CodeBuild icon

AWS CodeBuild

Developer Tools  ·  Common, learn when you need it

A machine AWS starts for you to compile and test your code, then throws away.

Picture it as

Hiring a kitchen by the hour. You bring the ingredients and the recipe, cook, and leave nothing behind.

What it actually does

You give CodeBuild a buildspec.yml listing the commands to run. It starts a clean container, runs them, keeps the logs and output files, then shuts down. Every build starts fresh, so dependency downloads repeat unless you turn on caching. Builds default to no VPC access, which surprises people trying to reach a private database.

Reach for it when

Do not reach for it when

One small example

On every push, install dependencies, run the test suite, build a Docker image and push it to ECR.

How you pay

Per build minute, by machine size. The surprise is slow builds with no cache, and ARM or GPU sizes costing far more per minute.

Usually sits next to

The real source

This is a simplified summary written for people learning AWS. The official AWS documentation is the authoritative word and it wins wherever this page disagrees with it.

All 303 AWS services, explained