Skill 1.1.3

Setting up build processes (for example, AWS CodeBuild)

Key Concepts

A buildspec.yml defines env variables, the phases (install, pre_build, build, post_build), the artifacts to upload, reports for test results and cache paths. Builds run in a managed or custom Docker image; building Docker images requires privileged mode. Local or S3 caching speeds up repeated dependency downloads.

The CodeBuild service role needs permissions for everything the build touches: S3 artifacts, ECR pushes, CloudWatch Logs, secrets and KMS keys. Builds that must reach private resources run in a VPC, which needs a NAT gateway or VPC endpoints to reach the internet and AWS APIs. Batch builds run several builds in parallel or as a graph, and reserved-capacity fleets remove queuing for busy teams.