# AWS CodeBuild

Official pricing: https://aws.amazon.com/codebuild/pricing/  
Category: paas · Isolation: container

## Pricing regimes (raw)

- **On-demand EC2 Linux general1.small** (sizes): general1.small (BUILD_GENERAL1_SMALL) 2 vCPU/4 GiB $0.3/h
- **On-demand EC2 Linux general1 (medium..2xlarge)** (sizes): general1.medium 4 vCPU/8 GiB $0.6/h; general1.large 8 vCPU/16 GiB $1.2/h; general1.xlarge 36 vCPU/72 GiB $4.788/h; general1.2xlarge 72 vCPU/144 GiB $12/h
- **On-demand EC2 Arm (arm1)** (sizes): arm1.small 2 vCPU/4 GiB $0.204/h; arm1.medium 4 vCPU/8 GiB $0.42/h; arm1.large 8 vCPU/16 GiB $0.9/h; arm1.xlarge 32 vCPU/64 GiB $3.6/h; arm1.2xlarge 48 vCPU/96 GiB $5.4/h
- **Interactive CodeBuild Sandbox Linux GPU** (sizes): gpu1.small 4 vCPU/16 GiB $1.152/h; gpu1.large 32 vCPU/255 GiB $6.516/h [alt]
- **On-demand EC2 Linux GPU** (sizes): gpu1.small 4 vCPU/16 GiB $3/h; gpu1.large 32 vCPU/255 GiB $18/h [alt]
- **Reserved fleet Linux GPU** (sizes): reserved.gpu.4cpu.16gib.nvme 4 vCPU/16 GiB $1.8/h; reserved.gpu.8cpu.32gib.nvme 8 vCPU/32 GiB $3.3/h; reserved.gpu.16cpu.64gib.nvme 16 vCPU/64 GiB $2.64/h; reserved.gpu.32cpu.128gib.nvme 32 vCPU/128 GiB $3.96/h; reserved.gpu.48cpu.192gib.nvme 48 vCPU/192 GiB $9.12/h; reserved.gpu.64cpu.256gib.nvme 64 vCPU/256 GiB $6.6/h [alt]
- **On-demand Lambda Arm** (sizes): lambda.arm.1GB 0.5 vCPU/1 GiB $0.036/h; lambda.arm.2GB 1 vCPU/2 GiB $0.072/h; lambda.arm.4GB 2 vCPU/4 GiB $0.144/h; lambda.arm.8GB 4 vCPU/8 GiB $0.288/h; lambda.arm.10GB 6 vCPU/10 GiB $0.36/h
- **On-demand Lambda x86-64** (sizes): lambda.x86-64.1GB 0.5 vCPU/1 GiB $0.072/h; lambda.x86-64.2GB 1 vCPU/2 GiB $0.144/h; lambda.x86-64.4GB 2 vCPU/4 GiB $0.288/h; lambda.x86-64.8GB 4 vCPU/8 GiB $0.576/h; lambda.x86-64.10GB 6 vCPU/10 GiB $0.72/h

## Features

Yes: persistent disk, volumes, idle auto-stop, ≥24 h sessions, custom image (Docker or snapshot), your own Docker/OCI image, Docker inside, root, SSH, egress allowlist, open internet, static egress IP, private networking, self-hosting, SOC 2, HIPAA, SSO, GPU, arm64, Windows, macOS, Python, Node.js, EU data residency, inbound access rules, firewall inside (nftables), extra volumes, shared volumes

No: snapshots, memory snapshots, fork/clone, pause/resume, start from your own snapshot, full VM (own kernel), nested virtualization, browser, desktop GUI, computer-use API, code interpreter, browser + desktop control, anti-bot stealth, CAPTCHA solving, residential IPs, preinstalled agents, public IPv4, HTTPS preview URLs, custom domains, raw TCP inbound, BYOC, open source, GPU desktop, HTTP method/path egress rules, wake on request, live resize, live fork (no pause), memory fork, MCP server, automatic snapshots, snapshots on demand, agent harness API, hosted agent API (their own agent), gVisor or VM (no shared kernel), secret proxy, secret proxy for any API

Unknown: everything else. Evidence (source + quote) per feature: https://battleships.dev/data/providers/aws-codebuild.json → feature_evidence

## Caveats

- Lambda compute (per-second, 1-10 GB) and reserved-capacity fleets not encoded.
- Prices are us-east-1; other regions differ.
- CloudWatch Logs, S3 artifacts and data transfer billed separately.
- EC2 on-demand builds run in containers on CodeBuild-managed hosts (LINUX_CONTAINER) or EC2 (LINUX_EC2).
- Free tier also includes 6,000 Lambda build-seconds/month on lambda.arm.1GB or lambda.x86-64.1GB (about $0.06-$0.12); not encoded, and it does not cover Sandbox, reserved or Docker image server usage.

## How this provider charges


CI runner product (job-scoped, ephemeral). Added by the missing-providers audit.

| Regime | When it applies | How billed | Numbers | Source |
|---|---|---|---|---|
| On-demand EC2 | default | per build minute, rounded up | general1.small $0.005/min, medium $0.01, large $0.02, xlarge $0.0798, 2xlarge $0.20; arm1 $0.0034..$0.09 | https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/CodeBuild/current/us-east-1/index.csv |
| On-demand Lambda | lambda compute types | per second | not encoded | https://aws.amazon.com/codebuild/pricing/ |
| Reserved capacity | fleets | per minute, 60-min minimum | not encoded | https://aws.amazon.com/codebuild/pricing/ |
| Free tier | always | 100 min/month general1.small/arm1.small | $0.50 | https://aws.amazon.com/codebuild/pricing/ |

## Gotchas
- Per-minute rounding up per build.
- Logs/artifacts billed separately.

## Worked example
4 vCPU / 8 GiB = general1.medium $0.01/min: 528,000 min = $5,280/month (general1 medium is billed per build minute, no reuse).

Sources: https://aws.amazon.com/codebuild/pricing/, https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html, https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/CodeBuild/current/us-east-1/index.csv
