Developer Tools
AWS CodeBuild
Fully managed build & test service.
Official docsOverview
CodeBuild compiles source, runs tests and produces artifacts in ephemeral containers. Pay per build minute.
When to use it
- Build & test stage of CI/CD
- Running heavy test suites without managing Jenkins agents
- Producing Docker images and pushing to ECR
Setup
- Create a project → source (GitHub/S3/CodeCommit).
- Pick a managed image (e.g. aws/codebuild/standard:7.0) or your own ECR image.
- Provide a buildspec.yml in the repo.
How to use
buildspec.yml example
version: 0.2
phases:
install:
runtime-versions: { nodejs: 20 }
commands: [ npm ci ]
build:
commands: [ npm test -- --reporter junit ]
reports:
jest:
files: [ 'junit.xml' ]
file-format: JUNITXMLQA use cases
- Run parallel Cypress shards using build matrix; aggregate JUnit reports into the CodeBuild Reports console.
- Publish coverage and test report artifacts to S3 with retention.
